Class JaxbMapKeyJoinColumnImpl
java.lang.Object
org.hibernate.boot.jaxb.mapping.spi.JaxbMapKeyJoinColumnImpl
- All Implemented Interfaces:
Serializable, JaxbCheckable, JaxbColumn, JaxbColumnCommon, JaxbColumnDefinable, JaxbColumnJoined, JaxbColumnMutable, JaxbColumnNullable, JaxbColumnUniqueable, JaxbCommentable, JaxbDatabaseObject
@Repeatable(MapKeyJoinColumns.class)
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface MapKeyJoinColumn {
String name() default "";
String referencedColumnName() default "";
boolean unique() default false;
boolean nullable() default false;
boolean insertable() default true;
boolean updatable() default true;
String comment() default "";
String columnDefinition() default "";
String options() default "";
String table() default "";
ForeignKey foreignKey() default @ForeignKey(ConstraintMode.PROVIDER_DEFAULT);
CheckConstraint[] check() default {}
}
<p>Java class for map-key-join-column complex type</p>.
<p>The following schema fragment specifies the expected content contained within this class.</p>
<pre>{@code
<complexType name="map-key-join-column">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="foreign-key" type="{http://www.hibernate.org/xsd/orm/mapping}foreign-key" minOccurs="0"/>
<element name="check" type="{http://www.hibernate.org/xsd/orm/mapping}check-constraint" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="referenced-column-name" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="unique" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="nullable" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="insertable" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="updatable" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="column-definition" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="options" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="table" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
}</pre>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCheck()Gets the value of the check property.Gets the value of the columnDefinition property.Gets the value of the comment property.Gets the value of the foreignKey property.getName()Gets the value of the name property.Gets the value of the options property.Gets the value of the referencedColumnName property.getTable()Gets the value of the table property.Gets the value of the insertable property.Gets the value of the nullable property.isUnique()Gets the value of the unique property.Gets the value of the updatable property.voidsetColumnDefinition(String value) Sets the value of the columnDefinition property.voidsetComment(String value) Sets the value of the comment property.voidsetForeignKey(JaxbForeignKeyImpl value) Sets the value of the foreignKey property.voidsetInsertable(Boolean value) Sets the value of the insertable property.voidSets the value of the name property.voidsetNullable(Boolean value) Sets the value of the nullable property.voidsetOptions(String value) Sets the value of the options property.voidsetReferencedColumnName(String value) Sets the value of the referencedColumnName property.voidSets the value of the table property.voidSets the value of the unique property.voidsetUpdatable(Boolean value) Sets the value of the updatable property.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JaxbColumnCommon
getCheckConstraints
-
Field Details
-
comment
-
foreignKey
-
check
-
name
-
referencedColumnName
-
unique
-
nullable
-
insertable
-
updatable
-
columnDefinition
-
options
-
table
-
-
Constructor Details
-
JaxbMapKeyJoinColumnImpl
public JaxbMapKeyJoinColumnImpl()
-
-
Method Details
-
getComment
Gets the value of the comment property.- Specified by:
getCommentin interfaceJaxbColumnCommon- Specified by:
getCommentin interfaceJaxbCommentable- Returns:
- possible object is
String
-
setComment
-
getForeignKey
Gets the value of the foreignKey property.- Specified by:
getForeignKeyin interfaceJaxbColumnJoined- Returns:
- possible object is
JaxbForeignKeyImpl
-
setForeignKey
Sets the value of the foreignKey property.- Parameters:
value- allowed object isJaxbForeignKeyImpl
-
getCheck
Gets the value of the check 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 check property.For example, to add a new item, do as follows:
getCheck().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbCheckConstraintImpl- Returns:
- The value of the check property.
-
getName
Gets the value of the name property.- Specified by:
getNamein interfaceJaxbColumn- Returns:
- possible object is
String
-
setName
-
getReferencedColumnName
Gets the value of the referencedColumnName property.- Specified by:
getReferencedColumnNamein interfaceJaxbColumnJoined- Returns:
- possible object is
String
-
setReferencedColumnName
-
isUnique
Gets the value of the unique property.- Specified by:
isUniquein interfaceJaxbColumnCommon- Specified by:
isUniquein interfaceJaxbColumnUniqueable- Returns:
- possible object is
Boolean
-
setUnique
-
isNullable
Gets the value of the nullable property.- Specified by:
isNullablein interfaceJaxbColumnCommon- Specified by:
isNullablein interfaceJaxbColumnNullable- Returns:
- possible object is
Boolean
-
setNullable
-
isInsertable
Gets the value of the insertable property.- Specified by:
isInsertablein interfaceJaxbColumnCommon- Specified by:
isInsertablein interfaceJaxbColumnMutable- Returns:
- possible object is
Boolean
-
setInsertable
-
isUpdatable
Gets the value of the updatable property.- Specified by:
isUpdatablein interfaceJaxbColumnCommon- Specified by:
isUpdatablein interfaceJaxbColumnMutable- Returns:
- possible object is
Boolean
-
setUpdatable
-
getColumnDefinition
Gets the value of the columnDefinition property.- Specified by:
getColumnDefinitionin interfaceJaxbColumnDefinable- Returns:
- possible object is
String
-
setColumnDefinition
-
getOptions
Gets the value of the options property.- Specified by:
getOptionsin interfaceJaxbColumnDefinable- Returns:
- possible object is
String
-
setOptions
-
getTable
Gets the value of the table property.- Specified by:
getTablein interfaceJaxbColumn- Specified by:
getTablein interfaceJaxbColumnCommon- Returns:
- possible object is
String
-
setTable
-