Annotation Interface ValidFrom


@Target(FIELD) @Retention(RUNTIME) @Documented public @interface ValidFrom
The ValidFrom annotation can be placed on an entity field. This is only processed, if the entity has the SCD annotation, otherwise it will be ignored. With the help of this annotation, it can be specified which entity field will have the valid start date written to it, during the SCD persisting.

The annotation loading order:
In the case of a new entity:
When creating a new entity, the ValidFrom field will be filled with the current date In the case of modifying an existing entity:
When modifying an existing entity, the ValidFrom field will be filled with the current date.

Since:
4.0
Author:
JBStrap
See Also: