Package com.blazebit.persistence.view
Annotation Type EmptyFlatViewCreation
@Target({METHOD,PARAMETER}) @Retention(RUNTIME) public @interface EmptyFlatViewCreation
Specifies whether an empty flat view i.e. a view without an id where all members are null should be created or if
null
should be assigned.
By default, empty flat views are created for singular attributes and can be disabled with this annotation.
When annotating a singular attribute with @EmptyFlatViewCreation(false)
i.e. disable the empty flat view creation,
null
will be assigned to that attribute instead of an empty flat view.- Since:
- 1.5.0
- Author:
- Christian Beikov
-
Required Element Summary
Required Elements Modifier and Type Required Element Description boolean
value
Returns whether to create an empty flat view for the annotated singular attribute.
-
Element Details
-
value
boolean valueReturns whether to create an empty flat view for the annotated singular attribute.- Returns:
- whether to create an empty flat view for the annotated singular attribute
-