Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SessionFactory configuration  RSS feed

 
Bob Ciazoratione
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I currently use an Hibernate configuration file as follows:


When the Hibernate Configuration is initialized, I assume both SessionFactory's are bound to the JNDI context.
Now, for convenience, I would like to load the mappings from the Hibernate Configuration file and add the properties programmaticaly. I modified my Hibernate configuration file as follows:


And I initialize my Configuration as follows:


The problem is that I can't specify which properties belong to which SessionFactory (since there are 2 Factories bound to the JNDI context).

Any help?

Thanx,
Stijn
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Grand Puba"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it

here.

Thanks! and welcome to the JavaRanch!

Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!