Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

configure connection.url

 
manu chaox
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I configured hibernate.cfg.xml and
generated all DAO classes from a table via Hibernate from Derby database home directory.
An application works fine.

But what I have to do if the application run else user from his home directory?
hibernate.cfg.xml has still same path but user path to home is else:


Is there any chance how configure connection.url in else way than via hibernate.cfg.xml(by code)?

[ July 30, 2008: Message edited by: manu chaox ]
[ July 30, 2008: Message edited by: manu chaox ]
 
Kuladip Yadav
Ranch Hand
Posts: 162
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can configure each and every property in hibernete configuration file
e.g.


For more elaboration Check thgis one

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic