Annotation Type TypeName
-
@Target(TYPE) @Retention(RUNTIME) public @interface TypeName
Use TypeName annotation to give a distinctive type name for your Entities and ValueObjects. This name will be used everywhere by JaVers, instead of fully-qualified class name.
TypeName is recommended if you are usingJaversRepository
, because it gives you freedom of refactoring your package and class names.
Usage example:@TypeName("Person") class Person { @Id private int id; private String name; }
TypeName is alias for org.springframework.data.annotation.TypeAlias from Spring Data.- Since:
- 1.4
- See Also:
PropertyName
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String
value
The type name to be used when comparing and persisting
-