This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes EJB and other Java EE Technologies and the fly likes Weblogic EJB Deployment Descriptor Help Needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Weblogic EJB Deployment Descriptor Help Needed" Watch "Weblogic EJB Deployment Descriptor Help Needed" New topic
Author

Weblogic EJB Deployment Descriptor Help Needed

Sandeep Awasthi
Ranch Hand

Joined: Oct 23, 2003
Posts: 597
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);


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


Sandeep
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Weblogic EJB Deployment Descriptor Help Needed