<persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    version="1.0">
    <persistence-unit name="James" transaction-type="RESOURCE_LOCAL">
        <!-- IMAP stuff-->
	    <class>org.apache.james.imap.jpa.mail.model.JPAHeader</class>
    	<class>org.apache.james.imap.jpa.mail.model.JPAMailbox</class>
    	<class>org.apache.james.imap.jpa.mail.model.JPAMailboxMembership</class>
    	<class>org.apache.james.imap.jpa.mail.model.JPAMessage</class>
    	<class>org.apache.james.imap.jpa.mail.model.JPAProperty</class>
    	<class>org.apache.james.imap.jpa.user.model.JPASubscription</class>
        
        <!-- UsersRepository -->
    	<class>org.apache.james.server.jpa.JPAUser</class>

        <properties>
            <!--  create tables on startup -->
	    	<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
        </properties>
    </persistence-unit>
</persistence>

<persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    version="1.0">
    <persistence-unit name="James" transaction-type="RESOURCE_LOCAL">
        <!-- IMAP stuff-->
	    <class>org.apache.james.imap.jpa.mail.model.JPAHeader</class>
    	<class>org.apache.james.imap.jpa.mail.model.JPAMailbox</class>
    	<class>org.apache.james.imap.jpa.mail.model.JPAMailboxMembership</class>
    	<class>org.apache.james.imap.jpa.mail.model.JPAMessage</class>
    	<class>org.apache.james.imap.jpa.mail.model.JPAProperty</class>
    	<class>org.apache.james.imap.jpa.user.model.JPASubscription</class>
        
        <!-- UsersRepository -->
    	<class>org.apache.james.server.jpa.JPAUser</class>

        <properties>
            <!-- workaround till openjpa 1.3 or 2.0.0 was released -->
            <!-- see https://issues.apache.org/jira/browse/OPENJPA-740 -->
            <property name="openjpa.jdbc.DBDictionary" value="blobTypeName=LONGBLOB"/>
            <!--  create tables on startup -->
	    	<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
        </properties>
    </persistence-unit>
</persistence>

Add workaround for OPENJPA-740 which is related to IMAP-114
Add workaround for OPENJPA-740 which is related to IMAP-114

git-svn-id: 88158f914d5603334254b4adf21dfd50ec107162@920487 13f79535-47bb-0310-9956-ffa450edef68
