diff options
Diffstat (limited to 'src/META-INF/persistence.xml')
-rw-r--r-- | src/META-INF/persistence.xml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/META-INF/persistence.xml b/src/META-INF/persistence.xml new file mode 100644 index 00000000..28f38355 --- /dev/null +++ b/src/META-INF/persistence.xml @@ -0,0 +1,22 @@ +<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="release"> + <non-jta-data-source>java:/DefaultDS</non-jta-data-source> + <properties> + <property name="hibernate.show_sql" value="false"/> + <property name="hibernate.hbm2ddl.auto" value="update"/> + </properties> + </persistence-unit> + <persistence-unit name="debug"> + <properties> + <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/> + <property name="hibernate.connection.url" value="jdbc:mysql://localhost/test"/> + <property name="hibernate.connection.username" value="root"/> + <property name="hibernate.connection.password" value="root"/> + <property name="hibernate.show_sql" value="true"/> + <property name="hibernate.hbm2ddl.auto" value="update"/> + </properties> + </persistence-unit> +</persistence> |