-->
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.  [ 2 posts ] 
Author Message
 Post subject: Two session factory in a single hibernate config file?
PostPosted: Tue Feb 08, 2005 4:51 am 
Newbie

Joined: Thu Feb 03, 2005 5:49 am
Posts: 19
I need to use a pair of database.
I'm using two session-factory tags into the same hibernate-configuration tag but I'm getting a parsing exception. It seems it's not possible.

What must I to create two session factories in the same hibernate.cfg.xml flie?

I would like to use only one hibernate.cfg.xml file because in this way hibernate automatically reads the configuration file and I don't have to use any instruction to indicate another configuration file.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 10, 2005 1:27 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
you can't

_________________
Emmanuel


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

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.