Package | Description |
---|---|
org.jboss.shrinkwrap.descriptor.api.persistence10 |
Provides the interfaces and enumeration types as defined in the schema
|
Modifier and Type | Method and Description |
---|---|
PersistenceDescriptor |
PersistenceDescriptor.removeAllPersistenceUnit()
Removes all
persistence-unit elements |
PersistenceDescriptor |
PersistenceDescriptor.removeVersion()
Removes the
version attribute |
PersistenceDescriptor |
PersistenceDescriptor.version(String version)
Sets the
version attribute |
Modifier and Type | Method and Description |
---|---|
PersistenceUnit<PersistenceDescriptor> |
PersistenceDescriptor.createPersistenceUnit()
Creates a new
persistence-unit element |
List<PersistenceUnit<PersistenceDescriptor>> |
PersistenceDescriptor.getAllPersistenceUnit()
Returns all
persistence-unit elements |
PersistenceUnit<PersistenceDescriptor> |
PersistenceDescriptor.getOrCreatePersistenceUnit()
If not already created, a new
persistence-unit element will be created and returned. |
Copyright © 2016 JBoss by Red Hat. All rights reserved.