Relationships among entity beans defined in separate EJB projects
posted 5 years ago
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?