@Target(value=TYPE)
@Retention(value=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 an equivalent for org.springframework.data.annotation.TypeAlias
from Spring Data.| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
value
The type name to be used when comparing and persisting
|