my dog learned polymorphism*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 3013
    
  35

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


Founder of ExamLab and Systemup
See how I can help you to become an awesome programmer
 
jQuery in Action, 2nd edition
 
subject: Relationships among entity beans defined in separate EJB projects
 
Similar Threads
question about Enity mapping
simple example implementation?
implementation strategy for a simple ordering application.
Exception while firing the join queries
Passed SCBCD 5.0 :)