@Documented @Target(value={FIELD,METHOD}) @Retention(value=RUNTIME) public @interface ForeignKey
Column
to define the name and other database attributes for the field.Column
Modifier and Type | Optional Element and Description |
---|---|
ReferentialAction |
delete |
String |
referencedColumn |
Class<?> |
references |
ReferentialAction |
update |
public abstract ReferentialAction delete
ReferentialAction.CASCADE
ReferentialAction
public abstract ReferentialAction update
ReferentialAction.CASCADE
ReferentialAction
public abstract String referencedColumn
public abstract Class<?> references