mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
35 lines
1.0 KiB
Java
35 lines
1.0 KiB
Java
package com.avaje.ebean.annotation;
|
|
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
/**
|
|
* Marks an entity bean as being included in the change logging.
|
|
*/
|
|
@Target({ElementType.TYPE})
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
public @interface ChangeLog {
|
|
|
|
/**
|
|
* Specify if inserts should be explicitly Included or Excluded.
|
|
* <p>
|
|
* If not defined explicitly then the server default behaviour defined
|
|
* on ServerConfig is used.
|
|
* </p>
|
|
*/
|
|
ChangeLogInsertMode inserts() default ChangeLogInsertMode.DEFAULT;
|
|
|
|
/**
|
|
* When specified only include update requests that have at least one
|
|
* of the given properties as a dirty property.
|
|
* <p>
|
|
* This provides a way to filter requests to include in the change log such that
|
|
* only updates that include at least one of the given properties is included
|
|
* in the change log.
|
|
* </p>
|
|
*/
|
|
String[] updatesThatInclude() default {};
|
|
}
|