Annotation Interface Creator


@Target(FIELD) @Retention(RUNTIME) @Documented public @interface Creator
This annotation can be used to mark entity fields. If a new entity is saved, in which the primary key is not defined (null), then the field value will be the currently logged in user's name. This value is always written in the field value, regardless if the field contains any value(s). This value assignment will happen automatically during the use of the JPA. During the saving (JpaDaoAPI), the Client object must be specified in the parameters, or the field will not receive any values.
Since:
4.0
Author:
JBStrap
See Also: