• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

configure connection.url

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 162
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic