-->
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: multiple hibernate.cfg.xml files
PostPosted: Fri Dec 02, 2005 4:22 am 
Newbie

Joined: Fri Jul 08, 2005 6:23 am
Posts: 5
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

3.0
------------------------------

Hi gurus!
I'm asking you how its possible to generate two hibernate.cfg.xml files with XDoclet.

I need two cfg files because I have two datasources, so I wanna associate one to the first cfg and the second to the other cfg file.
Then, of course, I must generate two SessionFactory.

But my first big trouble is that I cannot find a way, with XDoclet, to generate more then one hibernate.cfg.xml file.
This piece of code, in my Ant build script, generate only one:

Code:
         <hibernatecfg destdir="build/xdoclet/hibernate"
                     version="3.0"
                       dataSource="${jndi.beg.ds.name}"
                     dialect="org.hibernate.dialect.SQLServerDialect"
                       showSql="true"
                       destinationFile="hibernate.beg.cfg.xml"/>


Thanks for any answer!

Salud

Max


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.