@Retention(value=RUNTIME)
@Target(value=ANNOTATION_TYPE)
public @interface SaveCascade
Cascade
annotation to define a cascade save operation.Modifier and Type | Optional Element and Description |
---|---|
java.lang.Class<? extends SaveOperation> |
operation
Specifies operation to perform as a save cascade.
|
boolean |
post
Specifies when the cascade is to occur.
|
boolean |
setForeignKeyReference
Indicates that foreign key reference should be set on target (child) rows during cascade.
|
boolean |
setForeignKeyValues
Indicates that foreign key values should be set on target (child) rows during cascade.
|
public abstract java.lang.Class<? extends SaveOperation> operation
SaveOperation
. Use subclass of SaveOperation
to
customize the save cascade.public abstract boolean post
public abstract boolean setForeignKeyValues
Cascade.foreignKeyValueFields()
,
OneToManyCascade.foreignKeyValueFields()
, or OneToOneCascade.foreignKeyValueFields()
.
Foreign key values are set prior to cascade for insert, update, delete, and save cascades. They are set after select cascades.
public abstract boolean setForeignKeyReference
Cascade.foreignKeyReferenceField()
,
OneToManyCascade.foreignKeyReferenceField()
, or OneToOneCascade.foreignKeyReferenceField()
.
Foreign key reference is set prior to cascade for insert, update, delete, and save cascades. It is set after select cascades.