• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Relationships among entity beans defined in separate EJB projects

 
A Tiwari
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 4670
325
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Anand loves java", please check your private messages regarding an important administrative matter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic