org.hibernate.boot.jaxb.mapping.spi.JaxbForeignKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core-jakarta Show documentation
Show all versions of hibernate-core-jakarta Show documentation
Hibernate O/RM implementation of the Jakarta Persistence specification
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.1
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2022.08.30 at 02:56:23 PM UTC
//
package org.hibernate.boot.jaxb.mapping.spi;
import java.io.Serializable;
import jakarta.persistence.ConstraintMode;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
*
*
* @Target({}) @Retention(RUNTIME)
* public @interface ForeignKey {
* String name() default "";
* ConstraintMode value() defalut CONSTRAINT
* String foreign-key-definition() default "";
*
* Note that the elements that embed the use of the annotation
* default this use as @ForeignKey(PROVIDER_DEFAULT)
* }
*
*
*
* Java class for foreign-key complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <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://xmlns.jcp.org/xml/ns/persistence/orm}constraint-mode" />
* <attribute name="foreign-key-definition" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "foreign-key", namespace = "http://xmlns.jcp.org/xml/ns/persistence/orm", propOrder = {
"description"
})
public class JaxbForeignKey
implements Serializable
{
@XmlElement(namespace = "http://xmlns.jcp.org/xml/ns/persistence/orm")
protected String description;
@XmlAttribute(name = "name")
protected String name;
@XmlAttribute(name = "constraint-mode")
@XmlJavaTypeAdapter(Adapter2 .class)
protected ConstraintMode constraintMode;
@XmlAttribute(name = "foreign-key-definition")
protected String foreignKeyDefinition;
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the constraintMode property.
*
* @return
* possible object is
* {@link String }
*
*/
public ConstraintMode getConstraintMode() {
return constraintMode;
}
/**
* Sets the value of the constraintMode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setConstraintMode(ConstraintMode value) {
this.constraintMode = value;
}
/**
* Gets the value of the foreignKeyDefinition property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getForeignKeyDefinition() {
return foreignKeyDefinition;
}
/**
* Sets the value of the foreignKeyDefinition property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setForeignKeyDefinition(String value) {
this.foreignKeyDefinition = value;
}
}