work.shashank.annotations.Callbacks Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of entity-events Show documentation
Show all versions of entity-events Show documentation
Events related to Hibernate Entities and Auditing of entities
The newest version!
package work.shashank.annotations;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* @author Shashank Sharma
*/
@Documented
@Target(TYPE)
@Retention(RUNTIME)
public @interface Callbacks {
/**
* On entity Save, whether to raise application event
* @return boolean
*/
boolean raiseApplicationEvent() default true;
/**
* On entity Save, whether to audit the entity's current state in ss_audit table
* @return boolean
*/
boolean auditable() default false;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy