[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Same data souce multiple database

jaikiran do-not-reply at jboss.com
Tue May 20 01:57:26 EDT 2008


"unnis" wrote : 
  | 
  |     Since Hibernate and Kodo-jdo takes the connection using datasource look up in their own code, I won't be able to change the database there. So this has to managed in the datasource level.

>From what i know, Hibernate allows the schema to be set through one of its APIs.

  | Configuration cfg = new Configuration();
  | cfg.setProperty("hibernate.default_schema", "XXX");
  | SessionFactory sf = cfg.configure().buildSessionFactory();

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151902#4151902

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151902



More information about the jboss-user mailing list