Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!