-->
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.  [ 1 post ] 
Author Message
 Post subject: Best Practice for Hibernate configuration with Spring?
PostPosted: Fri Jan 25, 2008 9:29 am 
Newbie

Joined: Wed Jan 23, 2008 8:07 am
Posts: 6
Hi,

Apologies if this is a double post. I posted this yesterday, but it doesn't appear to have been created properly.


Our Java applications includes multiple components using Hibernate for persistence and is wired together using Spring. To date all modules have used independent Hibernate Session Factories configured with



Module 1: Employees.jar

employee.hbm.xml



Module 2: Payments.jar

Payment.hbm.xml



If we want our Employees module to reference Payments then we need someway to reference the mapping files in Payments.jar from Employees.jar. But given Payments.jar may include 20 mappings files we don’t want to enumerate these in 2 places.



What is the recommended method of modularising and composing components using Hiberate & Spring?



All comments welcome.

Regards,

James


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

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.