-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Integrate entities of different applications
PostPosted: Sat Dec 27, 2008 8:59 am 
Newbie

Joined: Sun May 27, 2007 12:52 pm
Posts: 7
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 02, 2009 5:15 pm 
Red Hat Associate
Red Hat Associate

Joined: Mon Aug 16, 2004 11:14 am
Posts: 253
Location: Raleigh, NC
They do have to be mapped in the same SF/PU in order to map an association. You haven't talked about what kind of application this is, but you likely will have to manage things at the application level OR factor the entities out into a common PU and access them from the different applications.

_________________
Chris Bredesen
Senior Software Maintenance Engineer, JBoss


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.