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