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 |
---|---|
Persistence<T> |
Persistence.removeAllPersistenceUnit()
Removes all
persistence-unit elements |
Persistence<T> |
Persistence.removeVersion()
Removes the
version attribute |
Persistence<T> |
Persistence.version(String version)
Sets the
version attribute |
Modifier and Type | Method and Description |
---|---|
PersistenceUnit<Persistence<T>> |
Persistence.createPersistenceUnit()
Creates a new
persistence-unit element |
List<PersistenceUnit<Persistence<T>>> |
Persistence.getAllPersistenceUnit()
Returns all
persistence-unit elements |
PersistenceUnit<Persistence<T>> |
Persistence.getOrCreatePersistenceUnit()
If not already created, a new
persistence-unit element will be created and returned. |
Copyright © 2016 JBoss by Red Hat. All rights reserved.