Class JaxbForeignKeyImpl
java.lang.Object
org.hibernate.boot.jaxb.mapping.spi.JaxbForeignKeyImpl
- All Implemented Interfaces:
Serializable
@Target({}) @Retention(RUNTIME)
public @interface ForeignKey {
String name() default "";
ConstraintMode value() default CONSTRAINT;
String foreign-key-definition() default "";
String options() default "";
}
Note that the elements that embed the use of the annotation
default this use as @ForeignKey(PROVIDER_DEFAULT).
<p>Java class for foreign-key complex type</p>.
<p>The following schema fragment specifies the expected content contained within this class.</p>
<pre>{@code
<complexType name="foreign-key">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
</sequence>
<attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="constraint-mode" type="{http://www.hibernate.org/xsd/orm/mapping}constraint-mode" />
<attribute name="foreign-key-definition" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="options" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
}</pre>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConstraintModeprotected Stringprotected Stringprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the constraintMode property.Gets the value of the description property.Gets the value of the foreignKeyDefinition property.getName()Gets the value of the name property.Gets the value of the options property.voidsetConstraintMode(ConstraintMode value) Sets the value of the constraintMode property.voidsetDescription(String value) Sets the value of the description property.voidsetForeignKeyDefinition(String value) Sets the value of the foreignKeyDefinition property.voidSets the value of the name property.voidsetOptions(String value) Sets the value of the options property.
-
Field Details
-
description
-
name
-
constraintMode
-
foreignKeyDefinition
-
options
-
-
Constructor Details
-
JaxbForeignKeyImpl
public JaxbForeignKeyImpl()
-
-
Method Details
-
getDescription
-
setDescription
-
getName
-
setName
-
getConstraintMode
Gets the value of the constraintMode property.- Returns:
- possible object is
String
-
setConstraintMode
Sets the value of the constraintMode property.- Parameters:
value- allowed object isString
-
getForeignKeyDefinition
-
setForeignKeyDefinition
-
getOptions
-
setOptions
-