This post originated from an RSS feed registered with Java Buzz
by Peter Karich.
Original Post: hibernate.cfg.xml settings for derby, oracle and h2
Feed Title: Java and more ...
Feed URL: https://karussell.wordpress.com/category/java/feed/
Feed Description: Just another weblog. Its about my developer experiences with Java in general. In detail I will blog about NetBeans, Eclipse, Design Patterns, News, Web Frameworks and other tools. My focus will be open source tools, which make the life of a Java developer easier.
It took me some time to collect the hibernate.cfg.xml data which is necessary for derby, oracle and h2. So here are the default settings for those databases:
Apache Derby (network)
You start the network server and specify the following options in the script:
Linux: DERBY_OPTS=”-Dij.driver=org.apache.derby.jdbc.ClientDriver -Dij.protocol=jdbc:derby://localhost:1527/ -Dij.user=admin -Dij.password=admin”
Windows: set DERBY_OPTS=”-Dij.driver=org.apache.derby.jdbc.ClientDriver -Dij.protocol=jdbc:derby://localhost:1527/ -Dij.user=admin -Dij.password=admin”
<property name=”hibernate.connection.driver_class”>org.apache.derby.jdbc.ClientDriver</property>
<property name=”hibernate.connection.url”>jdbc:derby://localhost:1527/databaseName;create=true</property>
<property name=”hibernate.connection.username”>admin</property>
<property name=”hibernate.connection.password”>admin</property>
<!– no [...]