Skip to content

Instantly share code, notes, and snippets.

@sebastienblanc
Created April 30, 2013 08:54
Show Gist options
  • Save sebastienblanc/5487488 to your computer and use it in GitHub Desktop.
Save sebastienblanc/5487488 to your computer and use it in GitHub Desktop.
PersistenceFacet persistenceFacet = this.project.getFacet(PersistenceFacet.class);
PersistenceDescriptor persistenceConfig = persistenceFacet.getConfig();
persistenceConfig.persistenceUnit("forge-default").classes( "org.picketlink.idm.jpa.schema.IdentityObject",
"org.picketlink.idm.jpa.schema.PartitionObject",
"org.picketlink.idm.jpa.schema.RelationshipObject",
"org.picketlink.idm.jpa.schema.RelationshipIdentityObject",
"org.picketlink.idm.jpa.schema.RelationshipObjectAttribute",
"org.picketlink.idm.jpa.schema.IdentityObjectAttribute",
"org.picketlink.idm.jpa.schema.CredentialObject",
"org.picketlink.idm.jpa.schema.CredentialObjectAttribute");
persistenceFacet.saveConfig(persistenceConfig);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment