wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Relationships among entity beans defined in separate EJB projects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Relationships among entity beans defined in separate EJB projects" Watch "Relationships among entity beans defined in separate EJB projects" New topic
Author

Relationships among entity beans defined in separate EJB projects

A Tiwari
Greenhorn

Joined: Feb 01, 2011
Posts: 2
Hi all,

My application architecture involves separate EJB projects for separate modules. Each of these projects are deployed as separate EJB jar files in my application server.

Each project has a particular structure, with entity beans, session beans and some utility classes defined and each having its own persistence.xml file.

I want to define cross project relationships among the entity beans. Meaning, a particular entity in one project can have a relationship (one-to-many, many-to-one, many-to-many) with an entity in an another project.

For example, if I have Department and Employee entities defined in seaparate EJB projects and I want to define a one-to-many relationship from Department to Employee how I can achieve it?

Please suggest.

Regards,
Anand



Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3051
    
  36

"Anand loves java", please check your private messages regarding an important administrative matter.


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Relationships among entity beans defined in separate EJB projects