wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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
 
Consider Paul's rocket mass heater.
 
subject: Weblogic EJB Deployment Descriptor Help Needed
 
Similar Threads
EJB QL RETURNING ONLY THE FIRST RECORD OF THE TABLE
Help Requested --> Yep, it's a verifier message!
Desperate for Help
HFEJB Doubt-Entity Relations
EJB2.0 CMP - with a BMP cmr field