Package org.hibernate.boot.jaxb.mapping
Class JaxbPersistenceUnitDefaults
- java.lang.Object
-
- org.hibernate.boot.jaxb.mapping.JaxbPersistenceUnitDefaults
-
- All Implemented Interfaces:
Serializable
public class JaxbPersistenceUnitDefaults extends Object implements Serializable
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://www.hibernate.org/xsd/orm/mapping}emptyType" minOccurs="0"/> <choice minOccurs="0"> <element name="access" type="{http://www.hibernate.org/xsd/orm/mapping}access-type"/> <element name="default-access" type="{http://www.w3.org/2001/XMLSchema}string"/> </choice> <choice minOccurs="0"> <element name="cascade-persist" type="{http://www.hibernate.org/xsd/orm/mapping}emptyType" minOccurs="0"/> <element name="default-cascade" type="{http://www.w3.org/2001/XMLSchema}string"/> </choice> <element name="auto-import" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> <element name="default-lazy" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> <element name="entity-listeners" type="{http://www.hibernate.org/xsd/orm/mapping}entity-listeners" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AccessType
access
protected Boolean
autoImport
protected JaxbEmptyType
cascadePersist
protected String
catalog
protected String
defaultAccess
protected String
defaultCascade
protected Boolean
defaultLazy
protected JaxbEmptyType
delimitedIdentifiers
protected String
description
protected JaxbEntityListeners
entityListeners
protected String
schema
-
Constructor Summary
Constructors Constructor Description JaxbPersistenceUnitDefaults()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessType
getAccess()
Gets the value of the access property.JaxbEmptyType
getCascadePersist()
Gets the value of the cascadePersist property.String
getCatalog()
Gets the value of the catalog property.String
getDefaultAccess()
Gets the value of the defaultAccess property.String
getDefaultCascade()
Gets the value of the defaultCascade property.JaxbEmptyType
getDelimitedIdentifiers()
Gets the value of the delimitedIdentifiers property.String
getDescription()
Gets the value of the description property.JaxbEntityListeners
getEntityListeners()
Gets the value of the entityListeners property.String
getSchema()
Gets the value of the schema property.Boolean
isAutoImport()
Gets the value of the autoImport property.Boolean
isDefaultLazy()
Gets the value of the defaultLazy property.void
setAccess(AccessType value)
Sets the value of the access property.void
setAutoImport(Boolean value)
Sets the value of the autoImport property.void
setCascadePersist(JaxbEmptyType value)
Sets the value of the cascadePersist property.void
setCatalog(String value)
Sets the value of the catalog property.void
setDefaultAccess(String value)
Sets the value of the defaultAccess property.void
setDefaultCascade(String value)
Sets the value of the defaultCascade property.void
setDefaultLazy(Boolean value)
Sets the value of the defaultLazy property.void
setDelimitedIdentifiers(JaxbEmptyType value)
Sets the value of the delimitedIdentifiers property.void
setDescription(String value)
Sets the value of the description property.void
setEntityListeners(JaxbEntityListeners value)
Sets the value of the entityListeners property.void
setSchema(String value)
Sets the value of the schema property.
-
-
-
Field Detail
-
description
protected String description
-
schema
protected String schema
-
catalog
protected String catalog
-
delimitedIdentifiers
protected JaxbEmptyType delimitedIdentifiers
-
access
protected AccessType access
-
defaultAccess
protected String defaultAccess
-
cascadePersist
protected JaxbEmptyType cascadePersist
-
defaultCascade
protected String defaultCascade
-
autoImport
protected Boolean autoImport
-
defaultLazy
protected Boolean defaultLazy
-
entityListeners
protected JaxbEntityListeners entityListeners
-
-
Method Detail
-
getDescription
public String getDescription()
Gets the value of the description property.- Returns:
- possible object is
String
-
setDescription
public void setDescription(String value)
Sets the value of the description property.- Parameters:
value
- allowed object isString
-
getSchema
public String getSchema()
Gets the value of the schema property.- Returns:
- possible object is
String
-
setSchema
public void setSchema(String value)
Sets the value of the schema property.- Parameters:
value
- allowed object isString
-
getCatalog
public String getCatalog()
Gets the value of the catalog property.- Returns:
- possible object is
String
-
setCatalog
public void setCatalog(String value)
Sets the value of the catalog property.- Parameters:
value
- allowed object isString
-
getDelimitedIdentifiers
public JaxbEmptyType getDelimitedIdentifiers()
Gets the value of the delimitedIdentifiers property.- Returns:
- possible object is
JaxbEmptyType
-
setDelimitedIdentifiers
public void setDelimitedIdentifiers(JaxbEmptyType value)
Sets the value of the delimitedIdentifiers property.- Parameters:
value
- allowed object isJaxbEmptyType
-
getAccess
public AccessType getAccess()
Gets the value of the access property.- Returns:
- possible object is
String
-
setAccess
public void setAccess(AccessType value)
Sets the value of the access property.- Parameters:
value
- allowed object isString
-
getDefaultAccess
public String getDefaultAccess()
Gets the value of the defaultAccess property.- Returns:
- possible object is
String
-
setDefaultAccess
public void setDefaultAccess(String value)
Sets the value of the defaultAccess property.- Parameters:
value
- allowed object isString
-
getCascadePersist
public JaxbEmptyType getCascadePersist()
Gets the value of the cascadePersist property.- Returns:
- possible object is
JaxbEmptyType
-
setCascadePersist
public void setCascadePersist(JaxbEmptyType value)
Sets the value of the cascadePersist property.- Parameters:
value
- allowed object isJaxbEmptyType
-
getDefaultCascade
public String getDefaultCascade()
Gets the value of the defaultCascade property.- Returns:
- possible object is
String
-
setDefaultCascade
public void setDefaultCascade(String value)
Sets the value of the defaultCascade property.- Parameters:
value
- allowed object isString
-
isAutoImport
public Boolean isAutoImport()
Gets the value of the autoImport property.- Returns:
- possible object is
Boolean
-
setAutoImport
public void setAutoImport(Boolean value)
Sets the value of the autoImport property.- Parameters:
value
- allowed object isBoolean
-
isDefaultLazy
public Boolean isDefaultLazy()
Gets the value of the defaultLazy property.- Returns:
- possible object is
Boolean
-
setDefaultLazy
public void setDefaultLazy(Boolean value)
Sets the value of the defaultLazy property.- Parameters:
value
- allowed object isBoolean
-
getEntityListeners
public JaxbEntityListeners getEntityListeners()
Gets the value of the entityListeners property.- Returns:
- possible object is
JaxbEntityListeners
-
setEntityListeners
public void setEntityListeners(JaxbEntityListeners value)
Sets the value of the entityListeners property.- Parameters:
value
- allowed object isJaxbEntityListeners
-
-