Last active
August 29, 2015 14:05
-
-
Save kamcpp/f1c1d27995c6a4450053 to your computer and use it in GitHub Desktop.
A sample hibernate persistence.xml file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <persistence xmlns="http://java.sun.com/xml/ns/persistence" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" | |
| version="2.0"> | |
| <persistence-unit name="xyz"> | |
| <provider>org.hibernate.ejb.HibernatePersistence</provider> | |
| <class>domain.Person</class> | |
| <properties> | |
| <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver"/> | |
| <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://10.10.103.18:5432/karans_test_db"/> | |
| <property name="javax.persistence.jdbc.user" value="karans_user"/> | |
| <property name="javax.persistence.jdbc.password" value="12345"/> | |
| <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/> | |
| <property name="hibernate.show_sql" value="true"/> | |
| <property name="hibernate.hbm2ddl.auto" value="create"/> | |
| </properties> | |
| </persistence-unit> | |
| </persistence> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment