-->
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: Anyway to Configuration Multiple cfg files based on one cfg
PostPosted: Wed Oct 14, 2009 4:14 am 
Newbie

Joined: Tue May 24, 2005 4:18 am
Posts: 8
Location: Hyderabad
Hi,

We have an Application which is having another 2 or more subproducts. Our Application is hosted in ASP Model. We will be using the same DB for all products. We are using single hibernate.cfg.xml file which is having all products and sub products pojo classes. We would like to packaging the version into different products. We have some sysconfig tables which is having products information. We would like to add the Sub products (ie. hibernate-1.cfg.xml,hibernate-2.cfg.xml etc) based on SYSCONFIG table values.

Do we have the ability to add multiple hibernate.cfg.xml files after creating the Session and Sessionfactory?. We will like to mentain SYSCONFIG pojos in one hibernate.cfg.xml and create session to get the details of SYSCONFIG data. Based this data we would like to add respective subproducts hibernate configurations. Is it possible?

Thanks,
LALITH


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.