Class JaxbEntityImpl

java.lang.Object
org.hibernate.boot.jaxb.mapping.spi.JaxbEntityImpl
All Implemented Interfaces:
Serializable, JaxbEntity, JaxbEntityOrMappedSuperclass, JaxbLifecycleCallbackContainer, JaxbManagedType

public class JaxbEntityImpl extends Object implements Serializable, JaxbEntity
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 ""; } <p>Java class for entity complex type</p>. <p>The following schema fragment specifies the expected content contained within this class.</p> <pre>{@code <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="abstract" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> <element name="extends" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <choice minOccurs="0"> <element name="table" type="{http://www.hibernate.org/xsd/orm/mapping}table"/> <element name="table-expression" type="{http://www.w3.org/2001/XMLSchema}string"/> </choice> <element name="secondary-table" type="{http://www.hibernate.org/xsd/orm/mapping}secondary-table" maxOccurs="unbounded" minOccurs="0"/> <element name="synchronize" type="{http://www.hibernate.org/xsd/orm/mapping}synchronized-table" maxOccurs="unbounded" minOccurs="0"/> <sequence> <element name="primary-key-join-column" type="{http://www.hibernate.org/xsd/orm/mapping}primary-key-join-column" maxOccurs="unbounded" minOccurs="0"/> <element name="primary-key-foreign-key" type="{http://www.hibernate.org/xsd/orm/mapping}foreign-key" minOccurs="0"/> </sequence> <element name="rowid" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="sql-restriction" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <choice minOccurs="0"> <element name="sql-select" type="{http://www.hibernate.org/xsd/orm/mapping}sql-select"/> <element name="hql-select" type="{http://www.w3.org/2001/XMLSchema}string"/> </choice> <element name="sql-insert" type="{http://www.hibernate.org/xsd/orm/mapping}custom-sql" minOccurs="0"/> <element name="sql-update" type="{http://www.hibernate.org/xsd/orm/mapping}custom-sql" minOccurs="0"/> <element name="sql-delete" type="{http://www.hibernate.org/xsd/orm/mapping}custom-sql" minOccurs="0"/> <element name="dynamic-insert" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> <element name="dynamic-update" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> <element name="select-before-update" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> <element name="caching" type="{http://www.hibernate.org/xsd/orm/mapping}caching" minOccurs="0"/> <element name="batch-size" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/> <element name="lazy" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> <element name="mutable" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> <element name="optimistic-locking" type="{http://www.hibernate.org/xsd/orm/mapping}optimistic-locking-type" minOccurs="0"/> <element name="id-class" type="{http://www.hibernate.org/xsd/orm/mapping}id-class" minOccurs="0"/> <element name="inheritance" type="{http://www.hibernate.org/xsd/orm/mapping}inheritance" minOccurs="0"/> <element name="proxy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="polymorphism" type="{http://www.hibernate.org/xsd/orm/mapping}polymorphism-type" minOccurs="0"/> <element name="discriminator-value" type="{http://www.hibernate.org/xsd/orm/mapping}discriminator-value" minOccurs="0"/> <choice minOccurs="0"> <element name="discriminator-column" type="{http://www.hibernate.org/xsd/orm/mapping}discriminator-column"/> <element name="discriminator-formula" type="{http://www.hibernate.org/xsd/orm/mapping}discriminator-formula"/> </choice> <element name="sequence-generator" type="{http://www.hibernate.org/xsd/orm/mapping}sequence-generator" minOccurs="0"/> <element name="table-generator" type="{http://www.hibernate.org/xsd/orm/mapping}table-generator" minOccurs="0"/> <element name="generic-generator" type="{http://www.hibernate.org/xsd/orm/mapping}generic-id-generator" minOccurs="0"/> <element name="named-query" type="{http://www.hibernate.org/xsd/orm/mapping}named-query" maxOccurs="unbounded" minOccurs="0"/> <element name="named-native-query" type="{http://www.hibernate.org/xsd/orm/mapping}named-native-query" maxOccurs="unbounded" minOccurs="0"/> <element name="named-stored-procedure-query" type="{http://www.hibernate.org/xsd/orm/mapping}named-stored-procedure-query" maxOccurs="unbounded" minOccurs="0"/> <element name="sql-result-set-mapping" type="{http://www.hibernate.org/xsd/orm/mapping}sql-result-set-mapping" maxOccurs="unbounded" minOccurs="0"/> <element name="exclude-default-listeners" type="{http://www.hibernate.org/xsd/orm/mapping}emptyType" minOccurs="0"/> <element name="exclude-superclass-listeners" type="{http://www.hibernate.org/xsd/orm/mapping}emptyType" minOccurs="0"/> <element name="entity-listeners" type="{http://www.hibernate.org/xsd/orm/mapping}entity-listeners" minOccurs="0"/> <element name="pre-persist" type="{http://www.hibernate.org/xsd/orm/mapping}pre-persist" minOccurs="0"/> <element name="post-persist" type="{http://www.hibernate.org/xsd/orm/mapping}post-persist" minOccurs="0"/> <element name="pre-remove" type="{http://www.hibernate.org/xsd/orm/mapping}pre-remove" minOccurs="0"/> <element name="post-remove" type="{http://www.hibernate.org/xsd/orm/mapping}post-remove" minOccurs="0"/> <element name="pre-update" type="{http://www.hibernate.org/xsd/orm/mapping}pre-update" minOccurs="0"/> <element name="post-update" type="{http://www.hibernate.org/xsd/orm/mapping}post-update" minOccurs="0"/> <element name="post-load" type="{http://www.hibernate.org/xsd/orm/mapping}post-load" minOccurs="0"/> <element name="attribute-override" type="{http://www.hibernate.org/xsd/orm/mapping}attribute-override" maxOccurs="unbounded" minOccurs="0"/> <element name="association-override" type="{http://www.hibernate.org/xsd/orm/mapping}association-override" maxOccurs="unbounded" minOccurs="0"/> <element name="convert" type="{http://www.hibernate.org/xsd/orm/mapping}convert" maxOccurs="unbounded" minOccurs="0"/> <element name="named-entity-graph" type="{http://www.hibernate.org/xsd/orm/mapping}named-entity-graph" maxOccurs="unbounded" minOccurs="0"/> <element name="filter" type="{http://www.hibernate.org/xsd/orm/mapping}filter" maxOccurs="unbounded" minOccurs="0"/> <element name="fetch-profile" type="{http://www.hibernate.org/xsd/orm/mapping}fetch-profile" maxOccurs="unbounded" minOccurs="0"/> <element name="tenant-id" type="{http://www.hibernate.org/xsd/orm/mapping}tenant-id" minOccurs="0"/> <element name="attributes" type="{http://www.hibernate.org/xsd/orm/mapping}attributes" minOccurs="0"/> </sequence> <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="class" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="access" type="{http://www.hibernate.org/xsd/orm/mapping}access-type" /> <attribute name="attribute-accessor" type="{http://www.w3.org/2001/XMLSchema}string" /> <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> }</pre>
See Also: