java/nekurak.net-ejb/src/conf/persistence.xml
changeset 52 4c0408690ebf
child 145 0efefbf5f8b6
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/java/nekurak.net-ejb/src/conf/persistence.xml	Thu Mar 04 14:09:21 2010 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<persistence version="1.0" 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_1_0.xsd">
     1.6 +  <persistence-unit name="nekurak.net-PU" transaction-type="JTA">
     1.7 +    <provider>org.hibernate.ejb.HibernatePersistence</provider>
     1.8 +    <jta-data-source>jdbc/nekurak</jta-data-source>
     1.9 +    <exclude-unlisted-classes>false</exclude-unlisted-classes>
    1.10 +    <properties>
    1.11 +      <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
    1.12 +      <property name="hibernate.hbm2ddl.auto" value="validate"/>
    1.13 +      <property name="hibernate.max_fetch_depth " value="3"/>
    1.14 +      <property name="hibernate.default_batch_fetch_size" value="16"/>
    1.15 +      <property name="hibernate.order_updates" value="true"/>
    1.16 +      <property name="hibernate.order_inserts" value="true"/>
    1.17 +      <property name="hibernate.show_sql" value="false"/>
    1.18 +    </properties>
    1.19 +  </persistence-unit>
    1.20 +</persistence>