persistence-production.xml 1.15 KB
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.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_2_0.xsd">

    <!--
        PRODUCTION PERSISTENCE UNIT AIMED TO BE USED WITH MYSQL DB
    -->

    <persistence-unit name="Grog-DB" transaction-type="JTA">
        <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
        <jta-data-source>GrogDatabase</jta-data-source>
        <exclude-unlisted-classes>false</exclude-unlisted-classes>
        <properties>

            <property name="hibernate.connection.CharSet" value="utf8"/>
            <property name="hibernate.connection.characterEncoding" value="utf8"/>
            <property name="hibernate.connection.useUnicode" value="true"/>

            <!-- DDL control OFF
                        <property name="hibernate.show_sql" value="true"/>
                        <property name="hibernate.format_sql" value="true"/>
            -->
        </properties>
    </persistence-unit>
</persistence>