@Documented
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface FieldGroups
The specification of field groups on a class level allows specification at
a meaningful location. Specification at field level would cause redundancy
since there'd be no place that can assure that an ordering has been defined.
Field group specifications only have effect for all classes on the
inheritance hierarchy which ensures that no unwanted behaviour has been
defined since reusing groups from other inheritance hierarchies is not
intuitive and makes field group ordering unnecessarily complicated because it
might reference groups which aren't inside the inheritance hierarchy. Even
though the groups on other inheritance hiararchies don't have any effect, all
field group names on all entity classes need to be disjoint in order to avoid
unwanted behaviour.
- Author:
- richter