Class JaxbEmbeddedIdImpl
java.lang.Object
org.hibernate.boot.jaxb.mapping.spi.JaxbEmbeddedIdImpl
- All Implemented Interfaces:
Serializable, JaxbEmbeddedMapping, JaxbPersistentAttribute, JaxbSingularAttribute
public class JaxbEmbeddedIdImpl
extends Object
implements Serializable, JaxbEmbeddedMapping, JaxbSingularAttribute
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface EmbeddedId {}
<p>Java class for embedded-id complex type</p>.
<p>The following schema fragment specifies the expected content contained within this class.</p>
<pre>{@code
<complexType name="embedded-id">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="target" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="attribute-override" type="{http://www.hibernate.org/xsd/orm/mapping}attribute-override" 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" />
</restriction>
</complexContent>
</complexType>
}</pre>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccessTypeprotected Stringprotected List<JaxbAttributeOverrideImpl> protected Stringprotected StringSee `@org.hibernate.boot.internal.Target` -
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 attributeOverrides property.getName()Gets the value of the name property.See `@org.hibernate.boot.internal.Target`voidsetAccess(AccessType value) Sets the value of the access property.voidsetAttributeAccessor(String value) Sets the value of the attributeAccessor property.voidSets the value of the name property.voidSets the value of the target property.
-
Field Details
-
target
See `@org.hibernate.boot.internal.Target` -
attributeOverrides
-
name
-
access
-
attributeAccessor
-
-
Constructor Details
-
JaxbEmbeddedIdImpl
public JaxbEmbeddedIdImpl()
-
-
Method Details
-
getTarget
See `@org.hibernate.boot.internal.Target`- Specified by:
getTargetin interfaceJaxbEmbeddedMapping- Returns:
- possible object is
String
-
setTarget
Sets the value of the target property.- Specified by:
setTargetin interfaceJaxbEmbeddedMapping- Parameters:
value- allowed object isString- See Also:
-
getAttributeOverrides
Gets the value of the attributeOverrides 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 attributeOverrides property.For example, to add a new item, do as follows:
getAttributeOverrides().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbAttributeOverrideImpl- Returns:
- The value of the attributeOverrides property.
-
getName
Gets the value of the name property.- Specified by:
getNamein interfaceJaxbPersistentAttribute- Returns:
- possible object is
String
-
setName
Sets the value of the name property.- Specified by:
setNamein interfaceJaxbPersistentAttribute- Parameters:
value- allowed object isString
-
getAccess
Gets the value of the access property.- Specified by:
getAccessin interfaceJaxbPersistentAttribute- Returns:
- possible object is
String
-
setAccess
Sets the value of the access property.- Specified by:
setAccessin interfaceJaxbPersistentAttribute- Parameters:
value- allowed object isString
-
getAttributeAccessor
Gets the value of the attributeAccessor property.- Specified by:
getAttributeAccessorin interfaceJaxbPersistentAttribute- Returns:
- possible object is
String
-
setAttributeAccessor
Sets the value of the attributeAccessor property.- Specified by:
setAttributeAccessorin interfaceJaxbPersistentAttribute- Parameters:
value- allowed object isString
-