@Target(TYPE)
@Retention(RUNTIME)
public @interface TypeName
JaversRepository,
because it gives you freedom of refactoring your package and class names.
@TypeName("Person")
class Person {
@Id
private int id;
private String name;
}
TypeName is alias for org.springframework.data.annotation.TypeAlias
from Spring Data.PropertyName| Modifier and Type | Required Element | Description |
|---|---|---|
java.lang.String |
value |
The type name to be used when comparing and persisting
|