Hi Uli,
Thanks for the quick response, leaving it in XML is fine, problem is, the
xml file is packaged into a jar, can not find it under the 'ROOT' directory
for me to update, any idea putting that hibernate.cfg.xml somewhere else,
say WEB-INF?
Ulrich Stärk wrote:
>
> contribute a HibernateCo
contribute a HibernateConfigurer to the HibernateSessionSource service. Although I don't quite get
why putting the connection string into a properties file is any different than putting it in the xml
file...
Uli
On 17.08.2009 15:21 schrieb Angelo Chen:
Hi,
I use following in hibernate.cfg.xm
Hi,
I use following in hibernate.cfg.xml to connect to database:
< property
name="hibernate.connection.url">jdbc:mysql://localhost/stock?autoReconnect=true
This works very well, but it is hard coded, is there a way to put the
particular info in a property file, then pick it up when the t5 prog