Class PersistenceUnitDefaults
- java.lang.Object
-
- org.hibernate.jpamodelgen.xml.jaxb.PersistenceUnitDefaults
-
public class PersistenceUnitDefaults extends java.lang.Object
These defaults are applied to the persistence unit as a whole unless they are overridden by local annotation or XML element settings. schema - Used as the schema for all tables, secondary tables, join tables, collection tables, sequence generators, and table generators that apply to the persistence unit catalog - Used as the catalog for all tables, secondary tables, join tables, collection tables, sequence generators, and table generators that apply to the persistence unit delimited-identifiers - Used to treat database identifiers as delimited identifiers. access - Used as the access type for all managed classes in the persistence unit cascade-persist - Adds cascade-persist to the set of cascade options in all entity relationships of the persistence unit entity-listeners - List of default entity listeners to be invoked on each entity in the persistence unit.Java class for persistence-unit-defaults complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="persistence-unit-defaults"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="catalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="delimited-identifiers" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}emptyType" minOccurs="0"/> <element name="access" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}access-type" minOccurs="0"/> <element name="cascade-persist" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}emptyType" minOccurs="0"/> <element name="entity-listeners" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}entity-listeners" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected AccessType
access
protected EmptyType
cascadePersist
protected java.lang.String
catalog
protected EmptyType
delimitedIdentifiers
protected java.lang.String
description
protected EntityListeners
entityListeners
protected java.lang.String
schema
-
Constructor Summary
Constructors Constructor Description PersistenceUnitDefaults()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessType
getAccess()
Gets the value of the access property.EmptyType
getCascadePersist()
Gets the value of the cascadePersist property.java.lang.String
getCatalog()
Gets the value of the catalog property.EmptyType
getDelimitedIdentifiers()
Gets the value of the delimitedIdentifiers property.java.lang.String
getDescription()
Gets the value of the description property.EntityListeners
getEntityListeners()
Gets the value of the entityListeners property.java.lang.String
getSchema()
Gets the value of the schema property.void
setAccess(AccessType value)
Sets the value of the access property.void
setCascadePersist(EmptyType value)
Sets the value of the cascadePersist property.void
setCatalog(java.lang.String value)
Sets the value of the catalog property.void
setDelimitedIdentifiers(EmptyType value)
Sets the value of the delimitedIdentifiers property.void
setDescription(java.lang.String value)
Sets the value of the description property.void
setEntityListeners(EntityListeners value)
Sets the value of the entityListeners property.void
setSchema(java.lang.String value)
Sets the value of the schema property.
-
-
-
Field Detail
-
description
protected java.lang.String description
-
schema
protected java.lang.String schema
-
catalog
protected java.lang.String catalog
-
delimitedIdentifiers
protected EmptyType delimitedIdentifiers
-
access
protected AccessType access
-
cascadePersist
protected EmptyType cascadePersist
-
entityListeners
protected EntityListeners entityListeners
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Gets the value of the description property.- Returns:
- possible object is
String
-
setDescription
public void setDescription(java.lang.String value)
Sets the value of the description property.- Parameters:
value
- allowed object isString
-
getSchema
public java.lang.String getSchema()
Gets the value of the schema property.- Returns:
- possible object is
String
-
setSchema
public void setSchema(java.lang.String value)
Sets the value of the schema property.- Parameters:
value
- allowed object isString
-
getCatalog
public java.lang.String getCatalog()
Gets the value of the catalog property.- Returns:
- possible object is
String
-
setCatalog
public void setCatalog(java.lang.String value)
Sets the value of the catalog property.- Parameters:
value
- allowed object isString
-
getDelimitedIdentifiers
public EmptyType getDelimitedIdentifiers()
Gets the value of the delimitedIdentifiers property.- Returns:
- possible object is
EmptyType
-
setDelimitedIdentifiers
public void setDelimitedIdentifiers(EmptyType value)
Sets the value of the delimitedIdentifiers property.- Parameters:
value
- allowed object isEmptyType
-
getAccess
public AccessType getAccess()
Gets the value of the access property.- Returns:
- possible object is
AccessType
-
setAccess
public void setAccess(AccessType value)
Sets the value of the access property.- Parameters:
value
- allowed object isAccessType
-
getCascadePersist
public EmptyType getCascadePersist()
Gets the value of the cascadePersist property.- Returns:
- possible object is
EmptyType
-
setCascadePersist
public void setCascadePersist(EmptyType value)
Sets the value of the cascadePersist property.- Parameters:
value
- allowed object isEmptyType
-
getEntityListeners
public EntityListeners getEntityListeners()
Gets the value of the entityListeners property.- Returns:
- possible object is
EntityListeners
-
setEntityListeners
public void setEntityListeners(EntityListeners value)
Sets the value of the entityListeners property.- Parameters:
value
- allowed object isEntityListeners
-
-