org.azzyzt.jee.runtime.annotation
Annotation Type Internal


@Documented
@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface Internal

This annotation may be added to entity fields. Internal fields will not be exposed in DTOs. Hide fields as internal, when you either don't intend to persist objects of the entity class in question, or if leaving those fields null does not cause problems during insertion of new objects. The database columns may allow for NULL values or there may be database defaults or triggers in place.