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
|