Environment « cfg « JPA Q&A





2. net.sf.hibernate.cfg.Environment.jvmSupportsGetGeneratedKeys    forum.hibernate.org

####<12.02.2004 10.31 Uhr CET>

<> <> ####<12.02.2004 10.31 Uhr CET>
<> <> ####<12.02.2004 10.31 Uhr CET>
<> <>

3. Multiple hibernate.cfg.xml files for multiple environments    forum.hibernate.org

I'm a big fan of how Ruby on Rails separates database configuration into (at least) 3 different environments: test, development, and staging. In each case, you specify a different host, database, username, and password. Rails determines which one to use based on an environment variable RAILS_ENV. I would like to do that with a Hibernate-based app I'm working on, and I'm ...