Package org.hibernate.boot.jaxb.hbm.spi
Class JaxbHbmSimpleIdType
java.lang.Object
org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
org.hibernate.boot.jaxb.hbm.spi.JaxbHbmSimpleIdType
- All Implemented Interfaces:
Serializable,AttributeMapping,SingularAttributeInfo,ToolingHintContainer,TypeContainer
public class JaxbHbmSimpleIdType
extends JaxbHbmToolingHintContainer
implements Serializable, SingularAttributeInfo, ToolingHintContainer, TypeContainer
Declares the id type, column and generation algorithm for an entity class.
If a name attribute is given, the id is exposed to the application through the
named property of the class. If not, the id is only exposed to the application
via Session.getIdentifier()
Java class for SimpleIdType complex type
.The following schema fragment specifies the expected content contained within this class.
<complexType name="SimpleIdType">
<complexContent>
<extension base="{http://www.hibernate.org/xsd/orm/hbm}ToolingHintContainer">
<sequence>
<element name="column" type="{http://www.hibernate.org/xsd/orm/hbm}ColumnType" maxOccurs="unbounded" minOccurs="0"/>
<element name="type" type="{http://www.hibernate.org/xsd/orm/hbm}TypeSpecificationType" minOccurs="0"/>
<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="column" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="length" type="{http://www.w3.org/2001/XMLSchema}int" />
<attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="node" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="unsaved-value" type="{http://www.w3.org/2001/XMLSchema}string" />
</extension>
</complexContent>
</complexType>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected List<JaxbHbmColumnType>protected Stringprotected JaxbHbmGeneratorSpecificationTypeprotected Integerprotected Stringprotected Stringprotected JaxbHbmTypeSpecificationTypeprotected Stringprotected StringFields inherited from class org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
toolingHints -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the access property.Gets the value of the column property.Gets the value of the columnAttribute property.Gets the value of the generator property.Gets the value of the length property.getName()Gets the value of the name property.getNode()Gets the value of the node property.getType()Gets the value of the type property.Gets the value of the typeAttribute property.Gets the value of the unsavedValue property.voidSets the value of the access property.voidsetColumnAttribute(String value) Sets the value of the columnAttribute property.voidSets the value of the generator property.voidSets the value of the length property.voidSets the value of the name property.voidSets the value of the node property.voidSets the value of the type property.voidsetTypeAttribute(String value) Sets the value of the typeAttribute property.voidsetUnsavedValue(String value) Sets the value of the unsavedValue property.Methods inherited from class org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
getToolingHintsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.boot.jaxb.hbm.spi.ToolingHintContainer
getToolingHints
-
Field Details
-
column
-
type
-
generator
-
access
-
columnAttribute
-
length
-
name
-
node
-
typeAttribute
-
unsavedValue
-
-
Constructor Details
-
JaxbHbmSimpleIdType
public JaxbHbmSimpleIdType()
-
-
Method Details
-
getColumn
Gets the value of the column 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 column property.For example, to add a new item, do as follows:
getColumn().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbHbmColumnType- Returns:
- The value of the column property.
-
getType
Gets the value of the type property.- Specified by:
getTypein interfaceTypeContainer- Returns:
- possible object is
JaxbHbmTypeSpecificationType
-
setType
Sets the value of the type property.- Parameters:
value- allowed object isJaxbHbmTypeSpecificationType
-
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
Gets the value of the access property.- Specified by:
getAccessin interfaceAttributeMapping- Returns:
- possible object is
String
-
setAccess
Sets the value of the access property.- Parameters:
value- allowed object isString
-
getColumnAttribute
Gets the value of the columnAttribute property.- Returns:
- possible object is
String
-
setColumnAttribute
Sets the value of the columnAttribute property.- Parameters:
value- allowed object isString
-
getLength
Gets the value of the length property.- Returns:
- possible object is
Integer
-
setLength
Sets the value of the length property.- Parameters:
value- allowed object isInteger
-
getName
Gets the value of the name property.- Specified by:
getNamein interfaceAttributeMapping- Returns:
- possible object is
String
-
setName
Sets the value of the name property.- Parameters:
value- allowed object isString
-
getNode
Gets the value of the node property.- Returns:
- possible object is
String
-
setNode
Sets the value of the node property.- Parameters:
value- allowed object isString
-
getTypeAttribute
Gets the value of the typeAttribute property.- Specified by:
getTypeAttributein interfaceTypeContainer- Returns:
- possible object is
String
-
setTypeAttribute
Sets the value of the typeAttribute property.- Parameters:
value- allowed object isString
-
getUnsavedValue
Gets the value of the unsavedValue property.- Returns:
- possible object is
String
-
setUnsavedValue
Sets the value of the unsavedValue property.- Parameters:
value- allowed object isString
-