注释接口 OnDissociate


@Documented @Retention(RUNTIME) @Target(allowedTargets=PROPERTY) @Target(METHOD) public @interface OnDissociate
The annotation can only be used on reference association based on foreign key.
When the parent object of some child objects is deleted, or when some child objects of a parent object are discorded,
  • If the attribute of @OnDissociate is NONE, throw exception
  • If the attribute of @OnDissociate is SET_NULL, they parent properties of child objects will be set null
  • If the attribute of @OnDissociate is DELETE, the child objects will be deleted too.