Skip to content

Instantly share code, notes, and snippets.

@chongma
Created April 25, 2020 15:47
Show Gist options
  • Select an option

  • Save chongma/f75fb45d7f607f6c07a4218115a61b6d to your computer and use it in GitHub Desktop.

Select an option

Save chongma/f75fb45d7f607f6c07a4218115a61b6d to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!-- <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence
http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> -->
<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="conveyancing">
<jta-data-source>conveyancing</jta-data-source>
<non-jta-data-source>conveyancingUnmanaged</non-jta-data-source>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<property name="openjpa.jdbc.SynchronizeMappings"
value="buildSchema(ForeignKeys=true)" />
<property name="openjpa.BrokerImpl"
value="allowReferenceToSiblingContext=true" />
<property name="openjpa.Sequence"
value="class-table(Table=SEQUENCES, Increment=20, InitialValue=2000000)" />
<!-- <property name="openjpa.DataCache" value="true"/>
<property name="openjpa.RemoteCommitProvider" value="sjvm"/> -->
</properties>
</persistence-unit>
<persistence-unit name="operator">
<jta-data-source>operator</jta-data-source>
<non-jta-data-source>operatorUnmanaged</non-jta-data-source>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<property name="openjpa.jdbc.SynchronizeMappings"
value="buildSchema(ForeignKeys=true)" />
<property name="openjpa.BrokerImpl"
value="allowReferenceToSiblingContext=true" />
<!-- <property name="openjpa.Compatibility" value="CheckDatabaseForCascadePersistToDetachedEntity=false"
/> <property name="openjpa.Log" value="File=/Users/matthewbroadhead/Downloads/org.apache.openjpa.log,
DefaultLevel=TRACE, Runtime=TRACE, Tool=TRACE" /> -->
<!-- <property name="openjpa.Log" value="File=/Users/matthewbroadhead/Downloads/org.apache.openjpa.log,
DefaultLevel=TRACE, Runtime=TRACE, Tool=TRACE" /> -->
</properties>
</persistence-unit>
</persistence>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment