Hi,
I have two entities mapped in two different applications.
Let’s say the fist entity is Company in the application “Company Management”, which manages companies and information about them (size, address, associates, subsidiaries among others). The second entity is Risk in the application “Risk Management”, which manages the risk of credit of a given Company. Both applications are implemented in Java.
Conceptually, Company has a one-to-one relationship with Risk. Do I have to map both in the same hibernate factory (and at the same hibernate.cfg.xml) in order to map the relationship between them?
What about if I use EJB? Do I have to package both entities at the same ejb-jar, under the same persistent unit?
What are the other ways to integrate these two applications, supposing that Java is used on both applications?
Thanks in advance,
Celso
|