public class FieldAndGetterReflectionEntityInformation<T,ID extends Serializable>
extends org.springframework.data.repository.core.support.AbstractEntityInformation<T,ID>
EntityInformation implementation that inspects getters for an
annotation and invokes this getter's value to retrieve the id.| Constructor and Description |
|---|
FieldAndGetterReflectionEntityInformation(Class<T> domainClass)
Creates a new
ReflectionEntityInformation inspecting the given
domain class for a getter carrying the Id annotation. |
FieldAndGetterReflectionEntityInformation(Class<T> domainClass,
Class<? extends Annotation> annotation)
Creates a new
FieldAndGetterReflectionEntityInformation inspecting the
given domain class for a getter carrying the given annotation. |
| Modifier and Type | Method and Description |
|---|---|
ID |
getId(T entity) |
Class<ID> |
getIdType() |
protected Method method
public FieldAndGetterReflectionEntityInformation(Class<T> domainClass)
ReflectionEntityInformation inspecting the given
domain class for a getter carrying the Id annotation.domainClass - must not be null.public FieldAndGetterReflectionEntityInformation(Class<T> domainClass, Class<? extends Annotation> annotation)
FieldAndGetterReflectionEntityInformation inspecting the
given domain class for a getter carrying the given annotation.domainClass - must not be null.annotation - must not be null.Copyright © 2016. All rights reserved.