Class JaxbEmbedded
- java.lang.Object
-
- org.hibernate.boot.jaxb.mapping.JaxbEmbedded
-
- All Implemented Interfaces:
Serializable,PersistentAttribute
public class JaxbEmbedded extends Object implements Serializable, PersistentAttribute
See `@jakarta.persistence.Embedded` See `@org.hibernate.annotations.AttributeAccessor` See `@org.hibernate.annotations.OptimisticLock`Java class for embedded complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="embedded"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <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"/> </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" /> <attribute name="optimistic-lock" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> </restriction> </complexContent> </complexType>- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected jakarta.persistence.AccessTypeaccessprotected List<JaxbAssociationOverride>associationOverrideprotected StringattributeAccessorprotected List<JaxbAttributeOverride>attributeOverrideprotected List<JaxbConvert>convertprotected Stringnameprotected BooleanoptimisticLock
-
Constructor Summary
Constructors Constructor Description JaxbEmbedded()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.persistence.AccessTypegetAccess()Gets the value of the access property.List<JaxbAssociationOverride>getAssociationOverride()Gets the value of the associationOverride property.StringgetAttributeAccessor()Gets the value of the attributeAccessor property.List<JaxbAttributeOverride>getAttributeOverride()Gets the value of the attributeOverride property.List<JaxbConvert>getConvert()Gets the value of the convert property.StringgetName()Gets the value of the name property.booleanisOptimisticLock()Gets the value of the optimisticLock property.voidsetAccess(jakarta.persistence.AccessType value)Sets the value of the access property.voidsetAttributeAccessor(String value)Sets the value of the attributeAccessor property.voidsetName(String value)Sets the value of the name property.voidsetOptimisticLock(Boolean value)Sets the value of the optimisticLock property.
-
-
-
Field Detail
-
attributeOverride
protected List<JaxbAttributeOverride> attributeOverride
-
associationOverride
protected List<JaxbAssociationOverride> associationOverride
-
convert
protected List<JaxbConvert> convert
-
name
protected String name
-
access
protected jakarta.persistence.AccessType access
-
attributeAccessor
protected String attributeAccessor
-
optimisticLock
protected Boolean optimisticLock
-
-
Method Detail
-
getAttributeOverride
public List<JaxbAttributeOverride> 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 Jakarta XML Binding object. This is why there is not a
setmethod 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
JaxbAttributeOverride
-
getAssociationOverride
public List<JaxbAssociationOverride> 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 Jakarta XML Binding object. This is why there is not a
setmethod 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
JaxbAssociationOverride
-
getConvert
public List<JaxbConvert> 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 Jakarta XML Binding object. This is why there is not a
setmethod 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
JaxbConvert
-
getName
public String getName()
Gets the value of the name property.- Specified by:
getNamein interfacePersistentAttribute- Returns:
- possible object is
String
-
setName
public void setName(String value)
Sets the value of the name property.- Specified by:
setNamein interfacePersistentAttribute- Parameters:
value- allowed object isString
-
getAccess
public jakarta.persistence.AccessType getAccess()
Gets the value of the access property.- Specified by:
getAccessin interfacePersistentAttribute- Returns:
- possible object is
String
-
setAccess
public void setAccess(jakarta.persistence.AccessType value)
Sets the value of the access property.- Specified by:
setAccessin interfacePersistentAttribute- Parameters:
value- allowed object isString
-
getAttributeAccessor
public String getAttributeAccessor()
Gets the value of the attributeAccessor property.- Specified by:
getAttributeAccessorin interfacePersistentAttribute- Returns:
- possible object is
String
-
setAttributeAccessor
public void setAttributeAccessor(String value)
Sets the value of the attributeAccessor property.- Specified by:
setAttributeAccessorin interfacePersistentAttribute- Parameters:
value- allowed object isString
-
isOptimisticLock
public boolean isOptimisticLock()
Gets the value of the optimisticLock property.- Returns:
- possible object is
Boolean
-
-