Class Attributes
- java.lang.Object
-
- org.hibernate.jpamodelgen.xml.jaxb.Attributes
-
public class Attributes extends Object
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="{https://jakarta.ee/xml/ns/persistence/orm}id" maxOccurs="unbounded" minOccurs="0"/> <element name="embedded-id" type="{https://jakarta.ee/xml/ns/persistence/orm}embedded-id" minOccurs="0"/> </choice> <element name="basic" type="{https://jakarta.ee/xml/ns/persistence/orm}basic" maxOccurs="unbounded" minOccurs="0"/> <element name="version" type="{https://jakarta.ee/xml/ns/persistence/orm}version" maxOccurs="unbounded" minOccurs="0"/> <element name="many-to-one" type="{https://jakarta.ee/xml/ns/persistence/orm}many-to-one" maxOccurs="unbounded" minOccurs="0"/> <element name="one-to-many" type="{https://jakarta.ee/xml/ns/persistence/orm}one-to-many" maxOccurs="unbounded" minOccurs="0"/> <element name="one-to-one" type="{https://jakarta.ee/xml/ns/persistence/orm}one-to-one" maxOccurs="unbounded" minOccurs="0"/> <element name="many-to-many" type="{https://jakarta.ee/xml/ns/persistence/orm}many-to-many" maxOccurs="unbounded" minOccurs="0"/> <element name="element-collection" type="{https://jakarta.ee/xml/ns/persistence/orm}element-collection" maxOccurs="unbounded" minOccurs="0"/> <element name="embedded" type="{https://jakarta.ee/xml/ns/persistence/orm}embedded" maxOccurs="unbounded" minOccurs="0"/> <element name="transient" type="{https://jakarta.ee/xml/ns/persistence/orm}transient" maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Transient>_transientprotected List<Basic>basicprotected Stringdescriptionprotected List<ElementCollection>elementCollectionprotected List<Embedded>embeddedprotected EmbeddedIdembeddedIdprotected List<Id>idprotected List<ManyToMany>manyToManyprotected List<ManyToOne>manyToOneprotected List<OneToMany>oneToManyprotected List<OneToOne>oneToOneprotected List<Version>version
-
Constructor Summary
Constructors Constructor Description Attributes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Basic>getBasic()Gets the value of the basic property.StringgetDescription()Gets the value of the description property.List<ElementCollection>getElementCollection()Gets the value of the elementCollection property.List<Embedded>getEmbedded()Gets the value of the embedded property.EmbeddedIdgetEmbeddedId()Gets the value of the embeddedId property.List<Id>getId()Gets the value of the id property.List<ManyToMany>getManyToMany()Gets the value of the manyToMany property.List<ManyToOne>getManyToOne()Gets the value of the manyToOne property.List<OneToMany>getOneToMany()Gets the value of the oneToMany property.List<OneToOne>getOneToOne()Gets the value of the oneToOne property.List<Transient>getTransient()Gets the value of the transient property.List<Version>getVersion()Gets the value of the version property.voidsetDescription(String value)Sets the value of the description property.voidsetEmbeddedId(EmbeddedId value)Sets the value of the embeddedId property.
-
-
-
Field Detail
-
description
protected String description
-
embeddedId
protected EmbeddedId embeddedId
-
manyToMany
protected List<ManyToMany> manyToMany
-
elementCollection
protected List<ElementCollection> elementCollection
-
-
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<Id> 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
setmethod 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
Id- Returns:
- The value of the id property.
-
getEmbeddedId
public EmbeddedId getEmbeddedId()
Gets the value of the embeddedId property.- Returns:
- possible object is
EmbeddedId
-
setEmbeddedId
public void setEmbeddedId(EmbeddedId value)
Sets the value of the embeddedId property.- Parameters:
value- allowed object isEmbeddedId
-
getBasic
public List<Basic> getBasic()
Gets the value of the basic 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 basic property.For example, to add a new item, do as follows:
getBasic().add(newItem);Objects of the following type(s) are allowed in the list
Basic- Returns:
- The value of the basic property.
-
getVersion
public List<Version> 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
setmethod 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
Version- Returns:
- The value of the version property.
-
getManyToOne
public List<ManyToOne> getManyToOne()
Gets the value of the manyToOne 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 manyToOne property.For example, to add a new item, do as follows:
getManyToOne().add(newItem);Objects of the following type(s) are allowed in the list
ManyToOne- Returns:
- The value of the manyToOne property.
-
getOneToMany
public List<OneToMany> getOneToMany()
Gets the value of the oneToMany 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 oneToMany property.For example, to add a new item, do as follows:
getOneToMany().add(newItem);Objects of the following type(s) are allowed in the list
OneToMany- Returns:
- The value of the oneToMany property.
-
getOneToOne
public List<OneToOne> getOneToOne()
Gets the value of the oneToOne 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 oneToOne property.For example, to add a new item, do as follows:
getOneToOne().add(newItem);Objects of the following type(s) are allowed in the list
OneToOne- Returns:
- The value of the oneToOne property.
-
getManyToMany
public List<ManyToMany> getManyToMany()
Gets the value of the manyToMany 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 manyToMany property.For example, to add a new item, do as follows:
getManyToMany().add(newItem);Objects of the following type(s) are allowed in the list
ManyToMany- Returns:
- The value of the manyToMany property.
-
getElementCollection
public List<ElementCollection> getElementCollection()
Gets the value of the elementCollection 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 elementCollection property.For example, to add a new item, do as follows:
getElementCollection().add(newItem);Objects of the following type(s) are allowed in the list
ElementCollection- Returns:
- The value of the elementCollection property.
-
getEmbedded
public List<Embedded> getEmbedded()
Gets the value of the embedded 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 embedded property.For example, to add a new item, do as follows:
getEmbedded().add(newItem);Objects of the following type(s) are allowed in the list
Embedded- Returns:
- The value of the embedded property.
-
getTransient
public List<Transient> getTransient()
Gets the value of the transient 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 transient property.For example, to add a new item, do as follows:
getTransient().add(newItem);Objects of the following type(s) are allowed in the list
Transient- Returns:
- The value of the transient property.
-
-