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().
<p>Java class for CompositeIdType complex type.
<p>The following schema fragment specifies the expected content contained within this class.
<pre> <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> </pre>
| Modifier and Type | Field and Description |
|---|---|
protected String |
access |
protected String |
clazz |
protected JaxbHbmGeneratorSpecificationType |
generator |
protected List<JaxbHbmToolingHintContainer> |
keyPropertyOrKeyManyToOne |
protected Boolean |
mapped |
protected String |
name |
protected String |
node |
protected JaxbHbmUnsavedValueCompositeIdEnum |
unsavedValue |
toolingHints| Constructor and Description |
|---|
JaxbHbmCompositeIdType() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccess()
Gets the value of the access property.
|
String |
getClazz()
Gets the value of the clazz property.
|
JaxbHbmGeneratorSpecificationType |
getGenerator()
Gets the value of the generator property.
|
List<JaxbHbmToolingHintContainer> |
getKeyPropertyOrKeyManyToOne()
Gets the value of the keyPropertyOrKeyManyToOne property.
|
String |
getName()
Gets the value of the name property.
|
String |
getNode()
Gets the value of the node property.
|
JaxbHbmUnsavedValueCompositeIdEnum |
getUnsavedValue()
Gets the value of the unsavedValue property.
|
boolean |
isMapped()
Gets the value of the mapped property.
|
void |
setAccess(String value)
Sets the value of the access property.
|
void |
setClazz(String value)
Sets the value of the clazz property.
|
void |
setGenerator(JaxbHbmGeneratorSpecificationType value)
Sets the value of the generator property.
|
void |
setMapped(Boolean value)
Sets the value of the mapped property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setNode(String value)
Sets the value of the node property.
|
void |
setUnsavedValue(JaxbHbmUnsavedValueCompositeIdEnum value)
Sets the value of the unsavedValue property.
|
getToolingHintsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetToolingHintsprotected List<JaxbHbmToolingHintContainer> keyPropertyOrKeyManyToOne
protected JaxbHbmGeneratorSpecificationType generator
protected String access
protected String clazz
protected Boolean mapped
protected String name
protected String node
protected JaxbHbmUnsavedValueCompositeIdEnum unsavedValue
public List<JaxbHbmToolingHintContainer> getKeyPropertyOrKeyManyToOne()
Gets the value of the keyPropertyOrKeyManyToOne property.
<p> 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 <CODE>set</CODE> method for the keyPropertyOrKeyManyToOne property.
<p> For example, to add a new item, do as follows: <pre> getKeyPropertyOrKeyManyToOne().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
JaxbHbmCompositeKeyBasicAttributeType
JaxbHbmCompositeKeyManyToOneType
public JaxbHbmGeneratorSpecificationType getGenerator()
Gets the value of the generator property.
JaxbHbmGeneratorSpecificationTypepublic void setGenerator(JaxbHbmGeneratorSpecificationType value)
Sets the value of the generator property.
value - allowed object is
JaxbHbmGeneratorSpecificationTypepublic String getAccess()
Gets the value of the access property.
Stringpublic void setAccess(String value)
Sets the value of the access property.
value - allowed object is
Stringpublic String getClazz()
Gets the value of the clazz property.
Stringpublic void setClazz(String value)
Sets the value of the clazz property.
value - allowed object is
Stringpublic boolean isMapped()
Gets the value of the mapped property.
Booleanpublic void setMapped(Boolean value)
Sets the value of the mapped property.
value - allowed object is
Booleanpublic String getName()
Gets the value of the name property.
Stringpublic void setName(String value)
Sets the value of the name property.
value - allowed object is
Stringpublic String getNode()
Gets the value of the node property.
Stringpublic void setNode(String value)
Sets the value of the node property.
value - allowed object is
Stringpublic JaxbHbmUnsavedValueCompositeIdEnum getUnsavedValue()
Gets the value of the unsavedValue property.
JaxbHbmUnsavedValueCompositeIdEnumpublic void setUnsavedValue(JaxbHbmUnsavedValueCompositeIdEnum value)
Sets the value of the unsavedValue property.
value - allowed object is
JaxbHbmUnsavedValueCompositeIdEnumCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.