Skip to content

Instantly share code, notes, and snippets.

@abstractj
Last active December 16, 2015 05:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abstractj/53ce0a9faae482151da2 to your computer and use it in GitHub Desktop.
Save abstractj/53ce0a9faae482151da2 to your computer and use it in GitHub Desktop.
<persistence-unit name="picketlink-default"
transaction-type="JTA">
<description>PicketLink Persistence Unit</description>
<!-- This section is possible to be scaffolded -->
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>
<!-- This section will never change, only if PicketLink refactor some class and break compatibility -->
<class>org.picketlink.idm.jpa.schema.IdentityObject</class>
<class>org.picketlink.idm.jpa.schema.PartitionObject</class>
<class>org.picketlink.idm.jpa.schema.RelationshipObject</class>
<class>org.picketlink.idm.jpa.schema.RelationshipIdentityObject</class>
<class>org.picketlink.idm.jpa.schema.RelationshipObjectAttribute</class>
<class>org.picketlink.idm.jpa.schema.IdentityObjectAttribute</class>
<class>org.picketlink.idm.jpa.schema.CredentialObject</class>
<class>org.picketlink.idm.jpa.schema.CredentialObjectAttribute</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
<property name="hibernate.show_sql" value="false"/>
<property name="hibernate.format_sql" value="false"/>
<property name="hibernate.transaction.flush_before_completion"
value="true"/>
</properties>
</persistence-unit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment