类 JaxbHbmCompositeIdType
- java.lang.Object
-
- org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
-
- org.hibernate.boot.jaxb.hbm.spi.JaxbHbmCompositeIdType
-
- 所有已实现的接口:
Serializable,ToolingHintContainer
public class JaxbHbmCompositeIdType extends JaxbHbmToolingHintContainer implements Serializable, ToolingHintContainer
A composite key may be modelled by a java class with a property for each key column. The class must implement java.io.Serializable and reimplement equals() and hashCode().Java class for CompositeIdType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CompositeIdType"> <complexContent> <extension base="{http://www.hibernate.org/xsd/orm/hbm}ToolingHintContainer"> <sequence> <choice maxOccurs="unbounded"> <element name="key-property" type="{http://www.hibernate.org/xsd/orm/hbm}CompositeKeyBasicAttributeType"/> <element name="key-many-to-one" type="{http://www.hibernate.org/xsd/orm/hbm}CompositeKeyManyToOneType"/> </choice> <element name="generator" type="{http://www.hibernate.org/xsd/orm/hbm}GeneratorSpecificationType" minOccurs="0"/> </sequence> <attribute name="access" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="class" type="{http://www.hibernate.org/xsd/orm/hbm}ClassNameType" /> <attribute name="mapped" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="node" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="unsaved-value" type="{http://www.hibernate.org/xsd/orm/hbm}UnsavedValueCompositeIdEnum" default="undefined" /> </extension> </complexContent> </complexType>- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 protected Stringaccessprotected Stringclazzprotected JaxbHbmGeneratorSpecificationTypegeneratorprotected List<JaxbHbmToolingHintContainer>keyPropertyOrKeyManyToOneprotected Booleanmappedprotected Stringnameprotected Stringnodeprotected JaxbHbmUnsavedValueCompositeIdEnumunsavedValue-
从类继承的字段 org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
toolingHints
-
-
构造器概要
构造器 构造器 说明 JaxbHbmCompositeIdType()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetAccess()Gets the value of the access property.StringgetClazz()Gets the value of the clazz property.JaxbHbmGeneratorSpecificationTypegetGenerator()Gets the value of the generator property.List<JaxbHbmToolingHintContainer>getKeyPropertyOrKeyManyToOne()Gets the value of the keyPropertyOrKeyManyToOne property.StringgetName()Gets the value of the name property.StringgetNode()Gets the value of the node property.JaxbHbmUnsavedValueCompositeIdEnumgetUnsavedValue()Gets the value of the unsavedValue property.booleanisMapped()Gets the value of the mapped property.voidsetAccess(String value)Sets the value of the access property.voidsetClazz(String value)Sets the value of the clazz property.voidsetGenerator(JaxbHbmGeneratorSpecificationType value)Sets the value of the generator property.voidsetMapped(Boolean value)Sets the value of the mapped property.voidsetName(String value)Sets the value of the name property.voidsetNode(String value)Sets the value of the node property.voidsetUnsavedValue(JaxbHbmUnsavedValueCompositeIdEnum value)Sets the value of the unsavedValue property.-
从类继承的方法 org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
getToolingHints
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.boot.jaxb.hbm.spi.ToolingHintContainer
getToolingHints
-
-
-
-
字段详细资料
-
keyPropertyOrKeyManyToOne
protected List<JaxbHbmToolingHintContainer> keyPropertyOrKeyManyToOne
-
generator
protected JaxbHbmGeneratorSpecificationType generator
-
access
protected String access
-
clazz
protected String clazz
-
mapped
protected Boolean mapped
-
name
protected String name
-
node
protected String node
-
unsavedValue
protected JaxbHbmUnsavedValueCompositeIdEnum unsavedValue
-
-
方法详细资料
-
getKeyPropertyOrKeyManyToOne
public List<JaxbHbmToolingHintContainer> getKeyPropertyOrKeyManyToOne()
Gets the value of the keyPropertyOrKeyManyToOne 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 keyPropertyOrKeyManyToOne property.For example, to add a new item, do as follows:
getKeyPropertyOrKeyManyToOne().add(newItem);Objects of the following type(s) are allowed in the list
JaxbHbmCompositeKeyBasicAttributeTypeJaxbHbmCompositeKeyManyToOneType
-
getGenerator
public JaxbHbmGeneratorSpecificationType getGenerator()
Gets the value of the generator property.- 返回:
- possible object is
JaxbHbmGeneratorSpecificationType
-
setGenerator
public void setGenerator(JaxbHbmGeneratorSpecificationType value)
Sets the value of the generator property.- 参数:
value- allowed object isJaxbHbmGeneratorSpecificationType
-
getAccess
public String getAccess()
Gets the value of the access property.- 返回:
- possible object is
String
-
setAccess
public void setAccess(String value)
Sets the value of the access property.- 参数:
value- allowed object isString
-
getClazz
public String getClazz()
Gets the value of the clazz property.- 返回:
- possible object is
String
-
setClazz
public void setClazz(String value)
Sets the value of the clazz property.- 参数:
value- allowed object isString
-
isMapped
public boolean isMapped()
Gets the value of the mapped property.- 返回:
- possible object is
Boolean
-
setMapped
public void setMapped(Boolean value)
Sets the value of the mapped property.- 参数:
value- allowed object isBoolean
-
setName
public void setName(String value)
Sets the value of the name property.- 参数:
value- allowed object isString
-
setNode
public void setNode(String value)
Sets the value of the node property.- 参数:
value- allowed object isString
-
getUnsavedValue
public JaxbHbmUnsavedValueCompositeIdEnum getUnsavedValue()
Gets the value of the unsavedValue property.- 返回:
- possible object is
JaxbHbmUnsavedValueCompositeIdEnum
-
setUnsavedValue
public void setUnsavedValue(JaxbHbmUnsavedValueCompositeIdEnum value)
Sets the value of the unsavedValue property.- 参数:
value- allowed object isJaxbHbmUnsavedValueCompositeIdEnum
-
-