public class JoinColumn extends Object
@Target({METHOD, FIELD}) @Retention(RUNTIME) public @interface JoinColumn { String name() default ""; String referencedColumnName() default ""; boolean unique() default false; boolean nullable() default true; boolean insertable() default true; boolean updatable() default true; String columnDefinition() default ""; String table() default ""; ForeignKey foreignKey() default @ForeignKey(); }
<p>Java class for join-column complex type.
<p>The following schema fragment specifies the expected content contained within this class.
<pre> <complexType name="join-column"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <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="table" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType> </pre>
| Modifier and Type | Field and Description |
|---|---|
protected String |
columnDefinition |
protected Boolean |
insertable |
protected String |
name |
protected Boolean |
nullable |
protected String |
referencedColumnName |
protected String |
table |
protected Boolean |
unique |
protected Boolean |
updatable |
| Constructor and Description |
|---|
JoinColumn() |
| Modifier and Type | Method and Description |
|---|---|
String |
getColumnDefinition()
Gets the value of the columnDefinition property.
|
String |
getName()
Gets the value of the name property.
|
String |
getReferencedColumnName()
Gets the value of the referencedColumnName property.
|
String |
getTable()
Gets the value of the table property.
|
Boolean |
isInsertable()
Gets the value of the insertable property.
|
Boolean |
isNullable()
Gets the value of the nullable property.
|
Boolean |
isUnique()
Gets the value of the unique property.
|
Boolean |
isUpdatable()
Gets the value of the updatable property.
|
void |
setColumnDefinition(String value)
Sets the value of the columnDefinition property.
|
void |
setInsertable(Boolean value)
Sets the value of the insertable property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setNullable(Boolean value)
Sets the value of the nullable property.
|
void |
setReferencedColumnName(String value)
Sets the value of the referencedColumnName property.
|
void |
setTable(String value)
Sets the value of the table property.
|
void |
setUnique(Boolean value)
Sets the value of the unique property.
|
void |
setUpdatable(Boolean value)
Sets the value of the updatable property.
|
protected String name
protected String referencedColumnName
protected Boolean unique
protected Boolean nullable
protected Boolean insertable
protected Boolean updatable
protected String columnDefinition
protected String table
public String getName()
Gets the value of the name property.
Stringpublic void setName(String value)
Sets the value of the name property.
value - allowed object is
Stringpublic String getReferencedColumnName()
Gets the value of the referencedColumnName property.
Stringpublic void setReferencedColumnName(String value)
Sets the value of the referencedColumnName property.
value - allowed object is
Stringpublic Boolean isUnique()
Gets the value of the unique property.
Booleanpublic void setUnique(Boolean value)
Sets the value of the unique property.
value - allowed object is
Booleanpublic Boolean isNullable()
Gets the value of the nullable property.
Booleanpublic void setNullable(Boolean value)
Sets the value of the nullable property.
value - allowed object is
Booleanpublic Boolean isInsertable()
Gets the value of the insertable property.
Booleanpublic void setInsertable(Boolean value)
Sets the value of the insertable property.
value - allowed object is
Booleanpublic Boolean isUpdatable()
Gets the value of the updatable property.
Booleanpublic void setUpdatable(Boolean value)
Sets the value of the updatable property.
value - allowed object is
Booleanpublic String getColumnDefinition()
Gets the value of the columnDefinition property.
Stringpublic void setColumnDefinition(String value)
Sets the value of the columnDefinition property.
value - allowed object is
Stringpublic String getTable()
Gets the value of the table property.
StringCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.