public class JaxbHbmNaturalIdType extends Object implements Serializable
Java class for natural-id-type complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="natural-id-type"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <choice maxOccurs="unbounded" minOccurs="0"> <element name="property" type="{http://www.hibernate.org/xsd/orm/hbm}BasicAttributeType"/> <element name="many-to-one" type="{http://www.hibernate.org/xsd/orm/hbm}ManyToOneType"/> <element name="component" type="{http://www.hibernate.org/xsd/orm/hbm}CompositeAttributeType"/> <element name="dynamic-component" type="{http://www.hibernate.org/xsd/orm/hbm}dynamic-component-type"/> <element name="any" type="{http://www.hibernate.org/xsd/orm/hbm}AnyAssociationType"/> </choice> </sequence> <attribute name="mutable" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected List<Serializable> |
attributes |
protected Boolean |
mutable |
Constructor and Description |
---|
JaxbHbmNaturalIdType() |
Modifier and Type | Method and Description |
---|---|
List<Serializable> |
getAttributes()
Gets the value of the attributes property.
|
boolean |
isMutable()
Gets the value of the mutable property.
|
void |
setMutable(Boolean value)
Sets the value of the mutable property.
|
protected List<Serializable> attributes
protected Boolean mutable
public List<Serializable> getAttributes()
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 JAXB object.
This is why there is not a set
method for the attributes property.
For example, to add a new item, do as follows:
getAttributes().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbHbmBasicAttributeType
JaxbHbmManyToOneType
JaxbHbmCompositeAttributeType
JaxbHbmDynamicComponentType
JaxbHbmAnyAssociationType
public boolean isMutable()
Boolean
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.