Package org.hibernate.boot.jaxb.mapping
Class JaxbHbmAnyMapping
java.lang.Object
org.hibernate.boot.jaxb.mapping.JaxbHbmAnyMapping
- All Implemented Interfaces:
Serializable,DiscriminatedAssociation,PersistentAttribute
See `@org.hibernate.annotations.Any`
Java class for hbm-any-mapping complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="hbm-any-mapping">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="discriminator" type="{http://www.hibernate.org/xsd/orm/mapping}hbm-any-discriminator"/>
<element name="key" type="{http://www.hibernate.org/xsd/orm/mapping}hbm-any-key"/>
<element name="cascade" type="{http://www.hibernate.org/xsd/orm/mapping}cascade-type" minOccurs="0"/>
<element name="optimistic-lock" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
</sequence>
<attribute name="name" use="required" 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" />
</restriction>
</complexContent>
</complexType>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.boot.jaxb.mapping.DiscriminatedAssociation
DiscriminatedAssociation.Discriminator, DiscriminatedAssociation.Key -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccessTypeprotected Stringprotected JaxbCascadeTypeprotected JaxbHbmAnyDiscriminatorprotected JaxbHbmAnyKeyprotected Stringprotected Boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the access property.Gets the value of the attributeAccessor property.Gets the value of the cascade property.Gets the value of the discriminator property.getKey()Gets the value of the key property.getName()Gets the value of the name property.Gets the value of the optimisticLock property.voidsetAccess(AccessType value) Sets the value of the access property.voidsetAttributeAccessor(String value) Sets the value of the attributeAccessor property.voidsetCascade(JaxbCascadeType value) Sets the value of the cascade property.voidSets the value of the discriminator property.voidsetKey(JaxbHbmAnyKey value) Sets the value of the key property.voidSets the value of the name property.voidsetOptimisticLock(Boolean value) Sets the value of the optimisticLock property.
-
Field Details
-
discriminator
-
key
-
cascade
-
optimisticLock
-
name
-
access
-
attributeAccessor
-
-
Constructor Details
-
JaxbHbmAnyMapping
public JaxbHbmAnyMapping()
-
-
Method Details
-
getDiscriminator
Gets the value of the discriminator property.- Specified by:
getDiscriminatorin interfaceDiscriminatedAssociation- Returns:
- possible object is
JaxbHbmAnyDiscriminator
-
setDiscriminator
Sets the value of the discriminator property.- Parameters:
value- allowed object isJaxbHbmAnyDiscriminator
-
getKey
Gets the value of the key property.- Specified by:
getKeyin interfaceDiscriminatedAssociation- Returns:
- possible object is
JaxbHbmAnyKey
-
setKey
Sets the value of the key property.- Parameters:
value- allowed object isJaxbHbmAnyKey
-
getCascade
Gets the value of the cascade property.- Returns:
- possible object is
JaxbCascadeType
-
setCascade
Sets the value of the cascade property.- Parameters:
value- allowed object isJaxbCascadeType
-
isOptimisticLock
Gets the value of the optimisticLock property.- Returns:
- possible object is
Boolean
-
setOptimisticLock
Sets the value of the optimisticLock property.- Parameters:
value- allowed object isBoolean
-
getName
Gets the value of the name property.- Specified by:
getNamein interfacePersistentAttribute- Returns:
- possible object is
String
-
setName
Sets the value of the name property.- Specified by:
setNamein interfacePersistentAttribute- Parameters:
value- allowed object isString
-
getAccess
Gets the value of the access property.- Specified by:
getAccessin interfacePersistentAttribute- Returns:
- possible object is
String
-
setAccess
Sets the value of the access property.- Specified by:
setAccessin interfacePersistentAttribute- Parameters:
value- allowed object isString
-
getAttributeAccessor
Gets the value of the attributeAccessor property.- Specified by:
getAttributeAccessorin interfacePersistentAttribute- Returns:
- possible object is
String
-
setAttributeAccessor
Sets the value of the attributeAccessor property.- Specified by:
setAttributeAccessorin interfacePersistentAttribute- Parameters:
value- allowed object isString
-