Class Entity
- java.lang.Object
-
- org.hibernate.jpamodelgen.xml.jaxb.Entity
-
public class Entity extends java.lang.Object
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.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Entity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessType
getAccess()
Gets the value of the access property.java.util.List<AssociationOverride>
getAssociationOverride()
Gets the value of the associationOverride property.java.util.List<AttributeOverride>
getAttributeOverride()
Gets the value of the attributeOverride property.Attributes
getAttributes()
Gets the value of the attributes property.java.lang.String
getClazz()
Gets the value of the clazz property.java.util.List<Convert>
getConvert()
Gets the value of the convert property.java.lang.String
getDescription()
Gets the value of the description property.DiscriminatorColumn
getDiscriminatorColumn()
Gets the value of the discriminatorColumn property.java.lang.String
getDiscriminatorValue()
Gets the value of the discriminatorValue property.EntityListeners
getEntityListeners()
Gets the value of the entityListeners property.EmptyType
getExcludeDefaultListeners()
Gets the value of the excludeDefaultListeners property.EmptyType
getExcludeSuperclassListeners()
Gets the value of the excludeSuperclassListeners property.IdClass
getIdClass()
Gets the value of the idClass property.Inheritance
getInheritance()
Gets the value of the inheritance property.java.lang.String
getName()
Gets the value of the name property.java.util.List<NamedEntityGraph>
getNamedEntityGraph()
Gets the value of the namedEntityGraph property.java.util.List<NamedNativeQuery>
getNamedNativeQuery()
Gets the value of the namedNativeQuery property.java.util.List<NamedQuery>
getNamedQuery()
Gets the value of the namedQuery property.java.util.List<NamedStoredProcedureQuery>
getNamedStoredProcedureQuery()
Gets the value of the namedStoredProcedureQuery property.PostLoad
getPostLoad()
Gets the value of the postLoad property.PostPersist
getPostPersist()
Gets the value of the postPersist property.PostRemove
getPostRemove()
Gets the value of the postRemove property.PostUpdate
getPostUpdate()
Gets the value of the postUpdate property.PrePersist
getPrePersist()
Gets the value of the prePersist property.PreRemove
getPreRemove()
Gets the value of the preRemove property.PreUpdate
getPreUpdate()
Gets the value of the preUpdate property.ForeignKey
getPrimaryKeyForeignKey()
Gets the value of the primaryKeyForeignKey property.java.util.List<PrimaryKeyJoinColumn>
getPrimaryKeyJoinColumn()
Gets the value of the primaryKeyJoinColumn property.java.util.List<SecondaryTable>
getSecondaryTable()
Gets the value of the secondaryTable property.SequenceGenerator
getSequenceGenerator()
Gets the value of the sequenceGenerator property.java.util.List<SqlResultSetMapping>
getSqlResultSetMapping()
Gets the value of the sqlResultSetMapping property.Table
getTable()
Gets the value of the table property.TableGenerator
getTableGenerator()
Gets the value of the tableGenerator property.java.lang.Boolean
isCacheable()
Gets the value of the cacheable property.java.lang.Boolean
isMetadataComplete()
Gets the value of the metadataComplete property.void
setAccess(AccessType value)
Sets the value of the access property.void
setAttributes(Attributes value)
Sets the value of the attributes property.void
setCacheable(java.lang.Boolean value)
Sets the value of the cacheable property.void
setClazz(java.lang.String value)
Sets the value of the clazz property.void
setDescription(java.lang.String value)
Sets the value of the description property.void
setDiscriminatorColumn(DiscriminatorColumn value)
Sets the value of the discriminatorColumn property.void
setDiscriminatorValue(java.lang.String value)
Sets the value of the discriminatorValue property.void
setEntityListeners(EntityListeners value)
Sets the value of the entityListeners property.void
setExcludeDefaultListeners(EmptyType value)
Sets the value of the excludeDefaultListeners property.void
setExcludeSuperclassListeners(EmptyType value)
Sets the value of the excludeSuperclassListeners property.void
setIdClass(IdClass value)
Sets the value of the idClass property.void
setInheritance(Inheritance value)
Sets the value of the inheritance property.void
setMetadataComplete(java.lang.Boolean value)
Sets the value of the metadataComplete property.void
setName(java.lang.String value)
Sets the value of the name property.void
setPostLoad(PostLoad value)
Sets the value of the postLoad property.void
setPostPersist(PostPersist value)
Sets the value of the postPersist property.void
setPostRemove(PostRemove value)
Sets the value of the postRemove property.void
setPostUpdate(PostUpdate value)
Sets the value of the postUpdate property.void
setPrePersist(PrePersist value)
Sets the value of the prePersist property.void
setPreRemove(PreRemove value)
Sets the value of the preRemove property.void
setPreUpdate(PreUpdate value)
Sets the value of the preUpdate property.void
setPrimaryKeyForeignKey(ForeignKey value)
Sets the value of the primaryKeyForeignKey property.void
setSequenceGenerator(SequenceGenerator value)
Sets the value of the sequenceGenerator property.void
setTable(Table value)
Sets the value of the table property.void
setTableGenerator(TableGenerator value)
Sets the value of the tableGenerator property.
-
-
-
Field Detail
-
description
protected java.lang.String description
-
table
protected Table table
-
secondaryTable
protected java.util.List<SecondaryTable> secondaryTable
-
primaryKeyJoinColumn
protected java.util.List<PrimaryKeyJoinColumn> primaryKeyJoinColumn
-
primaryKeyForeignKey
protected ForeignKey primaryKeyForeignKey
-
idClass
protected IdClass idClass
-
inheritance
protected Inheritance inheritance
-
discriminatorValue
protected java.lang.String discriminatorValue
-
discriminatorColumn
protected DiscriminatorColumn discriminatorColumn
-
sequenceGenerator
protected SequenceGenerator sequenceGenerator
-
tableGenerator
protected TableGenerator tableGenerator
-
namedQuery
protected java.util.List<NamedQuery> namedQuery
-
namedNativeQuery
protected java.util.List<NamedNativeQuery> namedNativeQuery
-
namedStoredProcedureQuery
protected java.util.List<NamedStoredProcedureQuery> namedStoredProcedureQuery
-
sqlResultSetMapping
protected java.util.List<SqlResultSetMapping> sqlResultSetMapping
-
excludeDefaultListeners
protected EmptyType excludeDefaultListeners
-
excludeSuperclassListeners
protected EmptyType excludeSuperclassListeners
-
entityListeners
protected EntityListeners entityListeners
-
prePersist
protected PrePersist prePersist
-
postPersist
protected PostPersist postPersist
-
preRemove
protected PreRemove preRemove
-
postRemove
protected PostRemove postRemove
-
preUpdate
protected PreUpdate preUpdate
-
postUpdate
protected PostUpdate postUpdate
-
postLoad
protected PostLoad postLoad
-
attributeOverride
protected java.util.List<AttributeOverride> attributeOverride
-
associationOverride
protected java.util.List<AssociationOverride> associationOverride
-
convert
protected java.util.List<Convert> convert
-
namedEntityGraph
protected java.util.List<NamedEntityGraph> namedEntityGraph
-
attributes
protected Attributes attributes
-
name
protected java.lang.String name
-
clazz
protected java.lang.String clazz
-
access
protected AccessType access
-
cacheable
protected java.lang.Boolean cacheable
-
metadataComplete
protected java.lang.Boolean metadataComplete
-
-
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
-
getTable
public Table getTable()
Gets the value of the table property.- Returns:
- possible object is
Table
-
setTable
public void setTable(Table value)
Sets the value of the table property.- Parameters:
value
- allowed object isTable
-
getSecondaryTable
public java.util.List<SecondaryTable> getSecondaryTable()
Gets the value of the secondaryTable property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
set
method for the secondaryTable property.For example, to add a new item, do as follows:
getSecondaryTable().add(newItem);
Objects of the following type(s) are allowed in the list
SecondaryTable
-
getPrimaryKeyJoinColumn
public java.util.List<PrimaryKeyJoinColumn> getPrimaryKeyJoinColumn()
Gets the value of the primaryKeyJoinColumn property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
set
method for the primaryKeyJoinColumn property.For example, to add a new item, do as follows:
getPrimaryKeyJoinColumn().add(newItem);
Objects of the following type(s) are allowed in the list
PrimaryKeyJoinColumn
-
getPrimaryKeyForeignKey
public ForeignKey getPrimaryKeyForeignKey()
Gets the value of the primaryKeyForeignKey property.- Returns:
- possible object is
ForeignKey
-
setPrimaryKeyForeignKey
public void setPrimaryKeyForeignKey(ForeignKey value)
Sets the value of the primaryKeyForeignKey property.- Parameters:
value
- allowed object isForeignKey
-
getIdClass
public IdClass getIdClass()
Gets the value of the idClass property.- Returns:
- possible object is
IdClass
-
setIdClass
public void setIdClass(IdClass value)
Sets the value of the idClass property.- Parameters:
value
- allowed object isIdClass
-
getInheritance
public Inheritance getInheritance()
Gets the value of the inheritance property.- Returns:
- possible object is
Inheritance
-
setInheritance
public void setInheritance(Inheritance value)
Sets the value of the inheritance property.- Parameters:
value
- allowed object isInheritance
-
getDiscriminatorValue
public java.lang.String getDiscriminatorValue()
Gets the value of the discriminatorValue property.- Returns:
- possible object is
String
-
setDiscriminatorValue
public void setDiscriminatorValue(java.lang.String value)
Sets the value of the discriminatorValue property.- Parameters:
value
- allowed object isString
-
getDiscriminatorColumn
public DiscriminatorColumn getDiscriminatorColumn()
Gets the value of the discriminatorColumn property.- Returns:
- possible object is
DiscriminatorColumn
-
setDiscriminatorColumn
public void setDiscriminatorColumn(DiscriminatorColumn value)
Sets the value of the discriminatorColumn property.- Parameters:
value
- allowed object isDiscriminatorColumn
-
getSequenceGenerator
public SequenceGenerator getSequenceGenerator()
Gets the value of the sequenceGenerator property.- Returns:
- possible object is
SequenceGenerator
-
setSequenceGenerator
public void setSequenceGenerator(SequenceGenerator value)
Sets the value of the sequenceGenerator property.- Parameters:
value
- allowed object isSequenceGenerator
-
getTableGenerator
public TableGenerator getTableGenerator()
Gets the value of the tableGenerator property.- Returns:
- possible object is
TableGenerator
-
setTableGenerator
public void setTableGenerator(TableGenerator value)
Sets the value of the tableGenerator property.- Parameters:
value
- allowed object isTableGenerator
-
getNamedQuery
public java.util.List<NamedQuery> getNamedQuery()
Gets the value of the namedQuery property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
set
method for the namedQuery property.For example, to add a new item, do as follows:
getNamedQuery().add(newItem);
Objects of the following type(s) are allowed in the list
NamedQuery
-
getNamedNativeQuery
public java.util.List<NamedNativeQuery> getNamedNativeQuery()
Gets the value of the namedNativeQuery property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
set
method for the namedNativeQuery property.For example, to add a new item, do as follows:
getNamedNativeQuery().add(newItem);
Objects of the following type(s) are allowed in the list
NamedNativeQuery
-
getNamedStoredProcedureQuery
public java.util.List<NamedStoredProcedureQuery> getNamedStoredProcedureQuery()
Gets the value of the namedStoredProcedureQuery property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
set
method for the namedStoredProcedureQuery property.For example, to add a new item, do as follows:
getNamedStoredProcedureQuery().add(newItem);
Objects of the following type(s) are allowed in the list
NamedStoredProcedureQuery
-
getSqlResultSetMapping
public java.util.List<SqlResultSetMapping> getSqlResultSetMapping()
Gets the value of the sqlResultSetMapping property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
set
method for the sqlResultSetMapping property.For example, to add a new item, do as follows:
getSqlResultSetMapping().add(newItem);
Objects of the following type(s) are allowed in the list
SqlResultSetMapping
-
getExcludeDefaultListeners
public EmptyType getExcludeDefaultListeners()
Gets the value of the excludeDefaultListeners property.- Returns:
- possible object is
EmptyType
-
setExcludeDefaultListeners
public void setExcludeDefaultListeners(EmptyType value)
Sets the value of the excludeDefaultListeners property.- Parameters:
value
- allowed object isEmptyType
-
getExcludeSuperclassListeners
public EmptyType getExcludeSuperclassListeners()
Gets the value of the excludeSuperclassListeners property.- Returns:
- possible object is
EmptyType
-
setExcludeSuperclassListeners
public void setExcludeSuperclassListeners(EmptyType value)
Sets the value of the excludeSuperclassListeners 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
-
getPrePersist
public PrePersist getPrePersist()
Gets the value of the prePersist property.- Returns:
- possible object is
PrePersist
-
setPrePersist
public void setPrePersist(PrePersist value)
Sets the value of the prePersist property.- Parameters:
value
- allowed object isPrePersist
-
getPostPersist
public PostPersist getPostPersist()
Gets the value of the postPersist property.- Returns:
- possible object is
PostPersist
-
setPostPersist
public void setPostPersist(PostPersist value)
Sets the value of the postPersist property.- Parameters:
value
- allowed object isPostPersist
-
getPreRemove
public PreRemove getPreRemove()
Gets the value of the preRemove property.- Returns:
- possible object is
PreRemove
-
setPreRemove
public void setPreRemove(PreRemove value)
Sets the value of the preRemove property.- Parameters:
value
- allowed object isPreRemove
-
getPostRemove
public PostRemove getPostRemove()
Gets the value of the postRemove property.- Returns:
- possible object is
PostRemove
-
setPostRemove
public void setPostRemove(PostRemove value)
Sets the value of the postRemove property.- Parameters:
value
- allowed object isPostRemove
-
getPreUpdate
public PreUpdate getPreUpdate()
Gets the value of the preUpdate property.- Returns:
- possible object is
PreUpdate
-
setPreUpdate
public void setPreUpdate(PreUpdate value)
Sets the value of the preUpdate property.- Parameters:
value
- allowed object isPreUpdate
-
getPostUpdate
public PostUpdate getPostUpdate()
Gets the value of the postUpdate property.- Returns:
- possible object is
PostUpdate
-
setPostUpdate
public void setPostUpdate(PostUpdate value)
Sets the value of the postUpdate property.- Parameters:
value
- allowed object isPostUpdate
-
getPostLoad
public PostLoad getPostLoad()
Gets the value of the postLoad property.- Returns:
- possible object is
PostLoad
-
setPostLoad
public void setPostLoad(PostLoad value)
Sets the value of the postLoad property.- Parameters:
value
- allowed object isPostLoad
-
getAttributeOverride
public java.util.List<AttributeOverride> getAttributeOverride()
Gets the value of the attributeOverride property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
set
method for the attributeOverride property.For example, to add a new item, do as follows:
getAttributeOverride().add(newItem);
Objects of the following type(s) are allowed in the list
AttributeOverride
-
getAssociationOverride
public java.util.List<AssociationOverride> getAssociationOverride()
Gets the value of the associationOverride property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
set
method for the associationOverride property.For example, to add a new item, do as follows:
getAssociationOverride().add(newItem);
Objects of the following type(s) are allowed in the list
AssociationOverride
-
getConvert
public java.util.List<Convert> getConvert()
Gets the value of the convert property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
set
method for the convert property.For example, to add a new item, do as follows:
getConvert().add(newItem);
Objects of the following type(s) are allowed in the list
Convert
-
getNamedEntityGraph
public java.util.List<NamedEntityGraph> getNamedEntityGraph()
Gets the value of the namedEntityGraph property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
set
method for the namedEntityGraph property.For example, to add a new item, do as follows:
getNamedEntityGraph().add(newItem);
Objects of the following type(s) are allowed in the list
NamedEntityGraph
-
getAttributes
public Attributes getAttributes()
Gets the value of the attributes property.- Returns:
- possible object is
Attributes
-
setAttributes
public void setAttributes(Attributes value)
Sets the value of the attributes property.- Parameters:
value
- allowed object isAttributes
-
getName
public java.lang.String getName()
Gets the value of the name property.- Returns:
- possible object is
String
-
setName
public void setName(java.lang.String value)
Sets the value of the name property.- Parameters:
value
- allowed object isString
-
getClazz
public java.lang.String getClazz()
Gets the value of the clazz property.- Returns:
- possible object is
String
-
setClazz
public void setClazz(java.lang.String value)
Sets the value of the clazz property.- Parameters:
value
- allowed object isString
-
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
-
isCacheable
public java.lang.Boolean isCacheable()
Gets the value of the cacheable property.- Returns:
- possible object is
Boolean
-
setCacheable
public void setCacheable(java.lang.Boolean value)
Sets the value of the cacheable property.- Parameters:
value
- allowed object isBoolean
-
isMetadataComplete
public java.lang.Boolean isMetadataComplete()
Gets the value of the metadataComplete property.- Returns:
- possible object is
Boolean
-
setMetadataComplete
public void setMetadataComplete(java.lang.Boolean value)
Sets the value of the metadataComplete property.- Parameters:
value
- allowed object isBoolean
-
-