• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Weblogic EJB Deployment Descriptor Help Needed

 
Sandeep Awasthi
Ranch Hand
Posts: 597
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Can someone please help me in writing webloigc-cmp-rdbms-jar. descriptor for bi-directional one to one CMR relationship.

Lets say for ex. there is bi-directional relationship between Doctor & Patient. Each Doctor has only one patient and one patient is associated with only one doctor ( DOCTOR <---> PATIENT ).

/**** DOCTOR BEAN *********/


/*CMP Methods */

public abstract Integer getDoctorId();
public abstract void setDoctorId(Integer doctorId);
public abstract String getDoctorName();
public abstract void setDoctorName(String doctorName);

/******** CMR **********/

public abstract PatientLocal getPatient();
public abstract void setPatient(PatientLocal patientLocal);

.......
.........
...........







/********** PATIENT BEAN *********/


public abstract Integer getPatientId();
public abstract void setPatientId(Integer patientId);
public abstract String getPatientName();
public abstract void setPatientName(String patientName);


/**** CMR *****/

public abstract DoctorLocal getDoctor() ;
public abstract void setDoctor(DoctorLocal doctorLocal);


.....
.........
..........
...........
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic