Annotation Interface ValidTo
The
ValidTo
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 validity end date written to it, during the SCD persisting.
The annotation loading order:
In the case of modifying an existing entity:
When modifying an existing entity, the entity's last modified record's value is queried first. The received record's field(s),
that is/are annotated ValidTo
, will be filled with the current date.
In the case of deleting an existing entity:
When deleting, no actual deletion happens, the entity's last modified variant will be modified.
In that case, the field annotated with ValidTo
will have its value changed to the current date.
- Since:
- 4.0
- Author:
- JBStrap
- See Also: