Package org.hibernate.boot.jaxb.hbm.spi
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().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>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from class org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
toolingHints
-
-
Constructor Summary
Constructors Constructor Description JaxbHbmCompositeIdType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
getToolingHints
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.boot.jaxb.hbm.spi.ToolingHintContainer
getToolingHints
-
-
-
-
Field Detail
-
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
-
-
Method Detail
-
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 Jakarta XML Binding object. This is why there is not a
set
method 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
JaxbHbmCompositeKeyBasicAttributeType
JaxbHbmCompositeKeyManyToOneType
- Returns:
- The value of the keyPropertyOrKeyManyToOne property.
-
getGenerator
public JaxbHbmGeneratorSpecificationType getGenerator()
Gets the value of the generator property.- Returns:
- possible object is
JaxbHbmGeneratorSpecificationType
-
setGenerator
public void setGenerator(JaxbHbmGeneratorSpecificationType value)
Sets the value of the generator property.- Parameters:
value
- allowed object isJaxbHbmGeneratorSpecificationType
-
getAccess
public String getAccess()
Gets the value of the access property.- Returns:
- possible object is
String
-
setAccess
public void setAccess(String value)
Sets the value of the access property.- Parameters:
value
- allowed object isString
-
getClazz
public String getClazz()
Gets the value of the clazz property.- Returns:
- possible object is
String
-
setClazz
public void setClazz(String value)
Sets the value of the clazz property.- Parameters:
value
- allowed object isString
-
isMapped
public boolean isMapped()
Gets the value of the mapped property.- Returns:
- possible object is
Boolean
-
setMapped
public void setMapped(Boolean value)
Sets the value of the mapped property.- Parameters:
value
- allowed object isBoolean
-
getName
public String getName()
Gets the value of the name property.- Returns:
- possible object is
String
-
setName
public void setName(String value)
Sets the value of the name property.- Parameters:
value
- allowed object isString
-
getNode
public String getNode()
Gets the value of the node property.- Returns:
- possible object is
String
-
setNode
public void setNode(String value)
Sets the value of the node property.- Parameters:
value
- allowed object isString
-
getUnsavedValue
public JaxbHbmUnsavedValueCompositeIdEnum getUnsavedValue()
Gets the value of the unsavedValue property.- Returns:
- possible object is
JaxbHbmUnsavedValueCompositeIdEnum
-
setUnsavedValue
public void setUnsavedValue(JaxbHbmUnsavedValueCompositeIdEnum value)
Sets the value of the unsavedValue property.- Parameters:
value
- allowed object isJaxbHbmUnsavedValueCompositeIdEnum
-
-