Top Description Fields Constructors Methods
org.hibernate.boot.jaxb.mapping.spi

public Class JaxbEntity

extends Object
implements Serializable, EntityOrMappedSuperclass, LifecycleCallbackContainer, ManagedType
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.jaxb.mapping.spi.ManagedType, org.hibernate.boot.jaxb.mapping.spi.LifecycleCallbackContainer, org.hibernate.boot.jaxb.mapping.spi.EntityOrMappedSuperclass, java.io.Serializable
Annotations
@XmlAccessorType:FIELD
@XmlType
name:entity
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
propOrder:description, table, secondaryTable, primaryKeyJoinColumn, primaryKeyForeignKey, idClass, inheritance, discriminatorValue, discriminatorColumn, sequenceGenerator, tableGenerator, namedQuery, namedNativeQuery, namedStoredProcedureQuery, sqlResultSetMapping, excludeDefaultListeners, excludeSuperclassListeners, entityListeners, prePersist, postPersist, preRemove, postRemove, preUpdate, postUpdate, postLoad, attributeOverride, associationOverride, convert, namedEntityGraph, attributes
Imports
java.io.Serializable, java.util.ArrayList, .List, javax.persistence.AccessType, javax.xml.bind.annotation.XmlAccessType, .XmlAccessorType, .XmlAttribute, .XmlElement, .XmlType, javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter

Defines the settings and mappings for an entity. Is allowed to be sparsely populated and used in conjunction with the annotations. Alternatively, the metadata-complete attribute can be used to indicate that no annotations on the entity class (and its fields or properties) are to be processed. If this is the case then the defaulting rules for the entity and its subelements will be recursively applied. @Target(TYPE) @Retention(RUNTIME) public @interface Entity { String name() default ""; }

Java class for entity complex type.

The following schema fragment specifies the expected content contained within this class.

<complexType name="entity">
  <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="table" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}table" minOccurs="0"/>
        <element name="secondary-table" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}secondary-table" maxOccurs="unbounded" minOccurs="0"/>
        <sequence>
          <element name="primary-key-join-column" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}primary-key-join-column" maxOccurs="unbounded" minOccurs="0"/>
          <element name="primary-key-foreign-key" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}foreign-key" minOccurs="0"/>
        </sequence>
        <element name="id-class" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}id-class" minOccurs="0"/>
        <element name="inheritance" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}inheritance" minOccurs="0"/>
        <element name="discriminator-value" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}discriminator-value" minOccurs="0"/>
        <element name="discriminator-column" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}discriminator-column" minOccurs="0"/>
        <element name="sequence-generator" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}sequence-generator" minOccurs="0"/>
        <element name="table-generator" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}table-generator" minOccurs="0"/>
        <element name="named-query" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}named-query" maxOccurs="unbounded" minOccurs="0"/>
        <element name="named-native-query" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}named-native-query" maxOccurs="unbounded" minOccurs="0"/>
        <element name="named-stored-procedure-query" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}named-stored-procedure-query" maxOccurs="unbounded" minOccurs="0"/>
        <element name="sql-result-set-mapping" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}sql-result-set-mapping" maxOccurs="unbounded" minOccurs="0"/>
        <element name="exclude-default-listeners" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
        <element name="exclude-superclass-listeners" 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"/>
        <element name="pre-persist" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}pre-persist" minOccurs="0"/>
        <element name="post-persist" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}post-persist" minOccurs="0"/>
        <element name="pre-remove" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}pre-remove" minOccurs="0"/>
        <element name="post-remove" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}post-remove" minOccurs="0"/>
        <element name="pre-update" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}pre-update" minOccurs="0"/>
        <element name="post-update" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}post-update" minOccurs="0"/>
        <element name="post-load" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}post-load" minOccurs="0"/>
        <element name="attribute-override" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}attribute-override" maxOccurs="unbounded" minOccurs="0"/>
        <element name="association-override" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}association-override" maxOccurs="unbounded" minOccurs="0"/>
        <element name="convert" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}convert" maxOccurs="unbounded" minOccurs="0"/>
        <element name="named-entity-graph" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}named-entity-graph" maxOccurs="unbounded" minOccurs="0"/>
        <element name="attributes" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}attributes" minOccurs="0"/>
      </sequence>
      <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
      <attribute name="class" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
      <attribute name="access" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}access-type" />
      <attribute name="cacheable" type="{http://www.w3.org/2001/XMLSchema}boolean" />
      <attribute name="metadata-complete" type="{http://www.w3.org/2001/XMLSchema}boolean" />
    </restriction>
  </complexContent>
</complexType>

Field Summary

Modifier and TypeField and Description
protected AccessType
protected List<JaxbAssociationOverride>
protected List<JaxbAttributeOverride>
protected JaxbAttributes
protected Boolean
protected String
protected List<JaxbConvert>
protected String
protected JaxbDiscriminatorColumn
protected String
protected JaxbEntityListeners
protected JaxbEmptyType
protected JaxbEmptyType
protected JaxbIdClass
protected JaxbInheritance
protected Boolean
protected String
protected List<JaxbNamedEntityGraph>
protected List<JaxbNamedNativeQuery>
protected List<JaxbNamedQuery>
protected List<JaxbNamedStoredProcedureQuery>
protected JaxbPostLoad
protected JaxbPostPersist
protected JaxbPostRemove
protected JaxbPostUpdate
protected JaxbPrePersist
protected JaxbPreRemove
protected JaxbPreUpdate
protected JaxbForeignKey
protected List<JaxbPrimaryKeyJoinColumn>
protected List<JaxbSecondaryTable>
protected JaxbSequenceGenerator
protected List<JaxbSqlResultSetMapping>
protected JaxbTable
protected JaxbTableGenerator

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public AccessType

Returns:

possible object is String
getAccess
()

Implements org.hibernate.boot.jaxb.mapping.spi.ManagedType.getAccess.

Gets the value of the access property.
public List<JaxbAssociationOverride>
getAssociationOverride()

Gets the value of the associationOverride property.

public List<JaxbAttributeOverride>
getAttributeOverride()

Gets the value of the attributeOverride property.

public JaxbAttributes
public String
public List<JaxbConvert>
getConvert()

Gets the value of the convert property.

public String
public JaxbDiscriminatorColumn

Returns:

possible object is JaxbDiscriminatorColumn
getDiscriminatorColumn
()

Gets the value of the discriminatorColumn property.

public String

Returns:

possible object is String
getDiscriminatorValue
()

Gets the value of the discriminatorValue property.

public JaxbEntityListeners

Returns:

possible object is JaxbEntityListeners
getEntityListeners
()

Implements org.hibernate.boot.jaxb.mapping.spi.EntityOrMappedSuperclass.getEntityListeners.

Gets the value of the entityListeners property.
public JaxbEmptyType

Returns:

possible object is JaxbEmptyType
getExcludeDefaultListeners
()

Implements org.hibernate.boot.jaxb.mapping.spi.EntityOrMappedSuperclass.getExcludeDefaultListeners.

Gets the value of the excludeDefaultListeners property.
public JaxbEmptyType

Returns:

possible object is JaxbEmptyType
getExcludeSuperclassListeners
()

Implements org.hibernate.boot.jaxb.mapping.spi.EntityOrMappedSuperclass.getExcludeSuperclassListeners.

Gets the value of the excludeSuperclassListeners property.
public JaxbIdClass

Returns:

possible object is JaxbIdClass
getIdClass
()

Implements org.hibernate.boot.jaxb.mapping.spi.EntityOrMappedSuperclass.getIdClass.

Gets the value of the idClass property.
public JaxbInheritance

Returns:

possible object is JaxbInheritance
getInheritance
()

Gets the value of the inheritance property.

public String

Returns:

possible object is String
getName
()

Gets the value of the name property.

public List<JaxbNamedEntityGraph>
getNamedEntityGraph()

Gets the value of the namedEntityGraph property.

public List<JaxbNamedNativeQuery>
getNamedNativeQuery()

Gets the value of the namedNativeQuery property.

public List<JaxbNamedQuery>
getNamedQuery()

Gets the value of the namedQuery property.

public List<JaxbNamedStoredProcedureQuery>
getNamedStoredProcedureQuery()

Gets the value of the namedStoredProcedureQuery property.

public JaxbPostLoad
public JaxbPostPersist
public JaxbPostRemove
public JaxbPostUpdate
public JaxbPrePersist
public JaxbPreRemove
public JaxbPreUpdate
public JaxbForeignKey

Returns:

possible object is JaxbForeignKey
getPrimaryKeyForeignKey
()

Gets the value of the primaryKeyForeignKey property.

public List<JaxbPrimaryKeyJoinColumn>
getPrimaryKeyJoinColumn()

Gets the value of the primaryKeyJoinColumn property.

public List<JaxbSecondaryTable>
getSecondaryTable()

Gets the value of the secondaryTable property.

public JaxbSequenceGenerator

Returns:

possible object is JaxbSequenceGenerator
getSequenceGenerator
()

Gets the value of the sequenceGenerator property.

public List<JaxbSqlResultSetMapping>
getSqlResultSetMapping()

Gets the value of the sqlResultSetMapping property.

public JaxbTable

Returns:

possible object is JaxbTable
getTable
()

Gets the value of the table property.

public JaxbTableGenerator

Returns:

possible object is JaxbTableGenerator
getTableGenerator
()

Gets the value of the tableGenerator property.

public Boolean

Returns:

possible object is Boolean
isCacheable
()

Gets the value of the cacheable property.

public Boolean

Returns:

possible object is Boolean
isMetadataComplete
()

Implements org.hibernate.boot.jaxb.mapping.spi.ManagedType.isMetadataComplete.

Gets the value of the metadataComplete property.
public void
setAccess(AccessType
allowed object is String
value
)

Implements org.hibernate.boot.jaxb.mapping.spi.ManagedType.setAccess.

Sets the value of the access property.
public void
setAttributes(JaxbAttributes
allowed object is JaxbAttributes
value
)

Implements org.hibernate.boot.jaxb.mapping.spi.EntityOrMappedSuperclass.setAttributes.

Sets the value of the attributes property.
public void
setCacheable(Boolean
allowed object is Boolean
value
)

Sets the value of the cacheable property.

public void
public void
public void
setDiscriminatorColumn(JaxbDiscriminatorColumn
allowed object is JaxbDiscriminatorColumn
value
)

Sets the value of the discriminatorColumn property.

public void
setDiscriminatorValue(String
allowed object is String
value
)

Sets the value of the discriminatorValue property.

public void
public void
setExcludeDefaultListeners(JaxbEmptyType
allowed object is JaxbEmptyType
value
)

Implements org.hibernate.boot.jaxb.mapping.spi.EntityOrMappedSuperclass.setExcludeDefaultListeners.

Sets the value of the excludeDefaultListeners property.
public void
setExcludeSuperclassListeners(JaxbEmptyType
allowed object is JaxbEmptyType
value
)

Implements org.hibernate.boot.jaxb.mapping.spi.EntityOrMappedSuperclass.setExcludeSuperclassListeners.

Sets the value of the excludeSuperclassListeners property.
public void
setIdClass(JaxbIdClass
allowed object is JaxbIdClass
value
)

Implements org.hibernate.boot.jaxb.mapping.spi.EntityOrMappedSuperclass.setIdClass.

Sets the value of the idClass property.
public void
setInheritance(JaxbInheritance
allowed object is JaxbInheritance
value
)

Sets the value of the inheritance property.

public void
setMetadataComplete(Boolean
allowed object is Boolean
value
)

Implements org.hibernate.boot.jaxb.mapping.spi.ManagedType.setMetadataComplete.

Sets the value of the metadataComplete property.
public void
setName(String
allowed object is String
value
)

Sets the value of the name property.

public void
public void
public void
public void
public void
public void
public void
public void
setPrimaryKeyForeignKey(JaxbForeignKey
allowed object is JaxbForeignKey
value
)

Sets the value of the primaryKeyForeignKey property.

public void
setSequenceGenerator(JaxbSequenceGenerator
allowed object is JaxbSequenceGenerator
value
)

Sets the value of the sequenceGenerator property.

public void
setTable(JaxbTable
allowed object is JaxbTable
value
)

Sets the value of the table property.

public void
setTableGenerator(JaxbTableGenerator
allowed object is JaxbTableGenerator
value
)

Sets the value of the tableGenerator property.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait