Class JaxbAttributes
- java.lang.Object
-
- org.hibernate.boot.jaxb.mapping.JaxbAttributes
-
- All Implemented Interfaces:
Serializable
,AttributesContainer
public class JaxbAttributes extends Object implements Serializable, AttributesContainer
Entity-defined attributes This element contains the entity field or property mappings. It may be sparsely populated to include only a subset of the fields or properties. If metadata-complete for the entity is true then the remainder of the attributes will be defaulted according to the default rules.Java class for attributes complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="attributes"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <choice> <element name="id" type="{http://www.hibernate.org/xsd/orm/mapping}id" maxOccurs="unbounded" minOccurs="0"/> <element name="embedded-id" type="{http://www.hibernate.org/xsd/orm/mapping}embedded-id" minOccurs="0"/> </choice> <element name="natural-id" type="{http://www.hibernate.org/xsd/orm/mapping}natural-id" minOccurs="0"/> <element name="basic" type="{http://www.hibernate.org/xsd/orm/mapping}basic" maxOccurs="unbounded" minOccurs="0"/> <element name="version" type="{http://www.hibernate.org/xsd/orm/mapping}version" maxOccurs="unbounded" minOccurs="0"/> <element name="many-to-one" type="{http://www.hibernate.org/xsd/orm/mapping}many-to-one" maxOccurs="unbounded" minOccurs="0"/> <element name="one-to-many" type="{http://www.hibernate.org/xsd/orm/mapping}one-to-many" maxOccurs="unbounded" minOccurs="0"/> <element name="one-to-one" type="{http://www.hibernate.org/xsd/orm/mapping}one-to-one" maxOccurs="unbounded" minOccurs="0"/> <element name="many-to-many" type="{http://www.hibernate.org/xsd/orm/mapping}many-to-many" maxOccurs="unbounded" minOccurs="0"/> <element name="element-collection" type="{http://www.hibernate.org/xsd/orm/mapping}element-collection" maxOccurs="unbounded" minOccurs="0"/> <element name="embedded" type="{http://www.hibernate.org/xsd/orm/mapping}embedded" maxOccurs="unbounded" minOccurs="0"/> <element name="transient" type="{http://www.hibernate.org/xsd/orm/mapping}transient" maxOccurs="unbounded" minOccurs="0"/> <element name="any" type="{http://www.hibernate.org/xsd/orm/mapping}hbm-any-mapping" maxOccurs="unbounded" minOccurs="0"/> <element name="many-to-any" type="{http://www.hibernate.org/xsd/orm/mapping}hbm-many-to-any" maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<JaxbBasic>
basicAttributes
protected String
description
protected List<JaxbHbmAnyMapping>
discriminatedAssociations
protected List<JaxbElementCollection>
elementCollectionAttributes
protected List<JaxbEmbedded>
embeddedAttributes
protected JaxbEmbeddedId
embeddedId
protected List<JaxbId>
id
protected List<JaxbManyToMany>
manyToManyAttributes
protected List<JaxbManyToOne>
manyToOneAttributes
protected JaxbNaturalId
naturalId
protected List<JaxbOneToMany>
oneToManyAttributes
protected List<JaxbOneToOne>
oneToOneAttributes
protected List<JaxbHbmManyToAny>
pluralDiscriminatedAssociations
protected List<JaxbTransient>
transients
protected List<JaxbVersion>
version
-
Constructor Summary
Constructors Constructor Description JaxbAttributes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<JaxbBasic>
getBasicAttributes()
Gets the value of the basicAttributes property.String
getDescription()
Gets the value of the description property.List<JaxbHbmAnyMapping>
getDiscriminatedAssociations()
Gets the value of the discriminatedAssociations property.List<JaxbElementCollection>
getElementCollectionAttributes()
Gets the value of the elementCollectionAttributes property.List<JaxbEmbedded>
getEmbeddedAttributes()
Gets the value of the embeddedAttributes property.JaxbEmbeddedId
getEmbeddedId()
Gets the value of the embeddedId property.List<JaxbId>
getId()
Gets the value of the id property.List<JaxbManyToMany>
getManyToManyAttributes()
Gets the value of the manyToManyAttributes property.List<JaxbManyToOne>
getManyToOneAttributes()
Gets the value of the manyToOneAttributes property.JaxbNaturalId
getNaturalId()
Gets the value of the naturalId property.List<JaxbOneToMany>
getOneToManyAttributes()
Gets the value of the oneToManyAttributes property.List<JaxbOneToOne>
getOneToOneAttributes()
Gets the value of the oneToOneAttributes property.List<JaxbHbmManyToAny>
getPluralDiscriminatedAssociations()
Gets the value of the pluralDiscriminatedAssociations property.List<JaxbTransient>
getTransients()
Gets the value of the transients property.List<JaxbVersion>
getVersion()
Gets the value of the version property.void
setDescription(String value)
Sets the value of the description property.void
setEmbeddedId(JaxbEmbeddedId value)
Sets the value of the embeddedId property.void
setNaturalId(JaxbNaturalId value)
Sets the value of the naturalId property.
-
-
-
Field Detail
-
description
protected String description
-
embeddedId
protected JaxbEmbeddedId embeddedId
-
naturalId
protected JaxbNaturalId naturalId
-
version
protected List<JaxbVersion> version
-
manyToOneAttributes
protected List<JaxbManyToOne> manyToOneAttributes
-
oneToManyAttributes
protected List<JaxbOneToMany> oneToManyAttributes
-
oneToOneAttributes
protected List<JaxbOneToOne> oneToOneAttributes
-
manyToManyAttributes
protected List<JaxbManyToMany> manyToManyAttributes
-
elementCollectionAttributes
protected List<JaxbElementCollection> elementCollectionAttributes
-
embeddedAttributes
protected List<JaxbEmbedded> embeddedAttributes
-
transients
protected List<JaxbTransient> transients
-
discriminatedAssociations
protected List<JaxbHbmAnyMapping> discriminatedAssociations
-
pluralDiscriminatedAssociations
protected List<JaxbHbmManyToAny> pluralDiscriminatedAssociations
-
-
Method Detail
-
getDescription
public String getDescription()
Gets the value of the description property.- Returns:
- possible object is
String
-
setDescription
public void setDescription(String value)
Sets the value of the description property.- Parameters:
value
- allowed object isString
-
getId
public List<JaxbId> getId()
Gets the value of the id 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
set
method for the id property.For example, to add a new item, do as follows:
getId().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbId
- Returns:
- The value of the id property.
-
getEmbeddedId
public JaxbEmbeddedId getEmbeddedId()
Gets the value of the embeddedId property.- Returns:
- possible object is
JaxbEmbeddedId
-
setEmbeddedId
public void setEmbeddedId(JaxbEmbeddedId value)
Sets the value of the embeddedId property.- Parameters:
value
- allowed object isJaxbEmbeddedId
-
getNaturalId
public JaxbNaturalId getNaturalId()
Gets the value of the naturalId property.- Returns:
- possible object is
JaxbNaturalId
-
setNaturalId
public void setNaturalId(JaxbNaturalId value)
Sets the value of the naturalId property.- Parameters:
value
- allowed object isJaxbNaturalId
-
getBasicAttributes
public List<JaxbBasic> getBasicAttributes()
Gets the value of the basicAttributes 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
set
method for the basicAttributes property.For example, to add a new item, do as follows:
getBasicAttributes().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbBasic
- Specified by:
getBasicAttributes
in interfaceAttributesContainer
- Returns:
- The value of the basicAttributes property.
-
getVersion
public List<JaxbVersion> getVersion()
Gets the value of the version 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
set
method for the version property.For example, to add a new item, do as follows:
getVersion().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbVersion
- Returns:
- The value of the version property.
-
getManyToOneAttributes
public List<JaxbManyToOne> getManyToOneAttributes()
Gets the value of the manyToOneAttributes 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
set
method for the manyToOneAttributes property.For example, to add a new item, do as follows:
getManyToOneAttributes().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbManyToOne
- Specified by:
getManyToOneAttributes
in interfaceAttributesContainer
- Returns:
- The value of the manyToOneAttributes property.
-
getOneToManyAttributes
public List<JaxbOneToMany> getOneToManyAttributes()
Gets the value of the oneToManyAttributes 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
set
method for the oneToManyAttributes property.For example, to add a new item, do as follows:
getOneToManyAttributes().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbOneToMany
- Specified by:
getOneToManyAttributes
in interfaceAttributesContainer
- Returns:
- The value of the oneToManyAttributes property.
-
getOneToOneAttributes
public List<JaxbOneToOne> getOneToOneAttributes()
Gets the value of the oneToOneAttributes 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
set
method for the oneToOneAttributes property.For example, to add a new item, do as follows:
getOneToOneAttributes().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbOneToOne
- Specified by:
getOneToOneAttributes
in interfaceAttributesContainer
- Returns:
- The value of the oneToOneAttributes property.
-
getManyToManyAttributes
public List<JaxbManyToMany> getManyToManyAttributes()
Gets the value of the manyToManyAttributes 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
set
method for the manyToManyAttributes property.For example, to add a new item, do as follows:
getManyToManyAttributes().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbManyToMany
- Specified by:
getManyToManyAttributes
in interfaceAttributesContainer
- Returns:
- The value of the manyToManyAttributes property.
-
getElementCollectionAttributes
public List<JaxbElementCollection> getElementCollectionAttributes()
Gets the value of the elementCollectionAttributes 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
set
method for the elementCollectionAttributes property.For example, to add a new item, do as follows:
getElementCollectionAttributes().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbElementCollection
- Specified by:
getElementCollectionAttributes
in interfaceAttributesContainer
- Returns:
- The value of the elementCollectionAttributes property.
-
getEmbeddedAttributes
public List<JaxbEmbedded> getEmbeddedAttributes()
Gets the value of the embeddedAttributes 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
set
method for the embeddedAttributes property.For example, to add a new item, do as follows:
getEmbeddedAttributes().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbEmbedded
- Specified by:
getEmbeddedAttributes
in interfaceAttributesContainer
- Returns:
- The value of the embeddedAttributes property.
-
getTransients
public List<JaxbTransient> getTransients()
Gets the value of the transients 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
set
method for the transients property.For example, to add a new item, do as follows:
getTransients().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbTransient
- Specified by:
getTransients
in interfaceAttributesContainer
- Returns:
- The value of the transients property.
-
getDiscriminatedAssociations
public List<JaxbHbmAnyMapping> getDiscriminatedAssociations()
Gets the value of the discriminatedAssociations 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
set
method for the discriminatedAssociations property.For example, to add a new item, do as follows:
getDiscriminatedAssociations().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbHbmAnyMapping
- Specified by:
getDiscriminatedAssociations
in interfaceAttributesContainer
- Returns:
- The value of the discriminatedAssociations property.
-
getPluralDiscriminatedAssociations
public List<JaxbHbmManyToAny> getPluralDiscriminatedAssociations()
Gets the value of the pluralDiscriminatedAssociations 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
set
method for the pluralDiscriminatedAssociations property.For example, to add a new item, do as follows:
getPluralDiscriminatedAssociations().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbHbmManyToAny
- Specified by:
getPluralDiscriminatedAssociations
in interfaceAttributesContainer
- Returns:
- The value of the pluralDiscriminatedAssociations property.
-
-