Class JaxbHbmCompositeIdType
java.lang.Object
org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
org.hibernate.boot.jaxb.hbm.spi.JaxbHbmCompositeIdType
- All Implemented Interfaces:
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().
<p>Java class for CompositeIdType complex type</p>.
<p>The following schema fragment specifies the expected content contained within this class.</p>
<pre>{@code
<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>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected JaxbHbmGeneratorSpecificationTypeprotected List<JaxbHbmToolingHintContainer> protected Booleanprotected Stringprotected Stringprotected JaxbHbmUnsavedValueCompositeIdEnumFields inherited from class JaxbHbmToolingHintContainer
toolingHints -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the access property.getClazz()Gets the value of the clazz property.Gets the value of the generator property.Gets the value of the keyPropertyOrKeyManyToOne property.getName()Gets the value of the name property.getNode()Gets the value of the node property.Gets the value of the unsavedValue property.booleanisMapped()Gets the value of the mapped property.voidSets the value of the access property.voidSets the value of the clazz property.voidSets the value of the generator property.voidSets the value of the mapped property.voidSets the value of the name property.voidSets the value of the node property.voidSets the value of the unsavedValue property.Methods inherited from class JaxbHbmToolingHintContainer
getToolingHintsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ToolingHintContainer
getToolingHints
-
Field Details
-
keyPropertyOrKeyManyToOne
-
generator
-
access
-
clazz
-
mapped
-
name
-
node
-
unsavedValue
-
-
Constructor Details
-
JaxbHbmCompositeIdType
public JaxbHbmCompositeIdType()
-
-
Method Details
-
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 Jakarta XML Binding 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- Returns:
- The value of the keyPropertyOrKeyManyToOne property.
-
getGenerator
Gets the value of the generator property.- Returns:
- possible object is
JaxbHbmGeneratorSpecificationType
-
setGenerator
Sets the value of the generator property.- Parameters:
value- allowed object isJaxbHbmGeneratorSpecificationType
-
getAccess
-
setAccess
-
getClazz
-
setClazz
-
isMapped
public boolean isMapped()Gets the value of the mapped property.- Returns:
- possible object is
Boolean
-
setMapped
-
getName
-
setName
-
getNode
-
setNode
-
getUnsavedValue
Gets the value of the unsavedValue property.- Returns:
- possible object is
JaxbHbmUnsavedValueCompositeIdEnum
-
setUnsavedValue
Sets the value of the unsavedValue property.- Parameters:
value- allowed object isJaxbHbmUnsavedValueCompositeIdEnum
-