java/nekurak.net-ejb/src/conf/persistence.xml
author František Kučera <franta-hg@frantovo.cz>
Wed, 26 Jan 2011 03:35:01 +0100
changeset 181 bcf03fc1e3f9
parent 145 0efefbf5f8b6
permissions -rw-r--r--
správná URL i v javascriptu
(aby fungoval i na /podnik/123 a ne jen v /aaa=bbb)
franta-hg@28
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@28
     2
<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">
franta-hg@145
     3
	<persistence-unit name="nekurak.net-PU" transaction-type="JTA">
franta-hg@145
     4
		<provider>org.hibernate.ejb.HibernatePersistence</provider>
franta-hg@145
     5
		<jta-data-source>jdbc/nekurak</jta-data-source>
franta-hg@145
     6
		<exclude-unlisted-classes>false</exclude-unlisted-classes>
franta-hg@145
     7
		<properties>
franta-hg@145
     8
			<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
franta-hg@145
     9
			<property name="hibernate.hbm2ddl.auto" value="validate"/>
franta-hg@145
    10
			<property name="hibernate.max_fetch_depth " value="3"/>
franta-hg@145
    11
			<property name="hibernate.default_batch_fetch_size" value="16"/>
franta-hg@145
    12
			<property name="hibernate.order_updates" value="true"/>
franta-hg@145
    13
			<property name="hibernate.order_inserts" value="true"/>
franta-hg@145
    14
			<property name="hibernate.show_sql" value="false"/>
franta-hg@145
    15
		</properties>
franta-hg@145
    16
	</persistence-unit>
franta-hg@28
    17
</persistence>