类 JaxbHbmNaturalIdType
- java.lang.Object
-
- org.hibernate.boot.jaxb.hbm.spi.JaxbHbmNaturalIdType
-
- 所有已实现的接口:
Serializable
public class JaxbHbmNaturalIdType extends Object implements Serializable
A natural-id element allows declaration of the unique business keyJava 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>- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 protected List<Serializable>attributesprotected Booleanmutable
-
构造器概要
构造器 构造器 说明 JaxbHbmNaturalIdType()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 List<Serializable>getAttributes()Gets the value of the attributes property.booleanisMutable()Gets the value of the mutable property.voidsetMutable(Boolean value)Sets the value of the mutable property.
-
-
-
字段详细资料
-
attributes
protected List<Serializable> attributes
-
mutable
protected Boolean mutable
-
-
方法详细资料
-
getAttributes
public List<Serializable> getAttributes()
Gets the value of the attributes 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 JAXB object. This is why there is not a
setmethod 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
JaxbHbmBasicAttributeTypeJaxbHbmManyToOneTypeJaxbHbmCompositeAttributeTypeJaxbHbmDynamicComponentTypeJaxbHbmAnyAssociationType
-
isMutable
public boolean isMutable()
Gets the value of the mutable property.- 返回:
- possible object is
Boolean
-
-