Class SimpleRelationalEntityMetadata<T>
java.lang.Object
org.springframework.data.relational.repository.query.SimpleRelationalEntityMetadata<T>
- All Implemented Interfaces:
RelationalEntityMetadata<T>,org.springframework.data.repository.core.EntityMetadata<T>
public class SimpleRelationalEntityMetadata<T>
extends Object
implements RelationalEntityMetadata<T>
Default implementation of
RelationalEntityMetadata.- Author:
- Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleRelationalEntityMetadata(Class<T> type, RelationalPersistentEntity<?> tableEntity) Creates a newSimpleRelationalEntityMetadatausing the given type andRelationalPersistentEntityto use for table lookups. -
Method Summary
Modifier and TypeMethodDescriptionReturns theRelationalPersistentEntitythat supposed to determine the table to be queried.Returns the name of the table the entity shall be persisted to.
-
Constructor Details
-
SimpleRelationalEntityMetadata
Creates a newSimpleRelationalEntityMetadatausing the given type andRelationalPersistentEntityto use for table lookups.- Parameters:
type- must not be null.tableEntity- must not be null.
-
-
Method Details
-
getJavaType
- Specified by:
getJavaTypein interfaceorg.springframework.data.repository.core.EntityMetadata<T>
-
getTableName
Description copied from interface:RelationalEntityMetadataReturns the name of the table the entity shall be persisted to.- Specified by:
getTableNamein interfaceRelationalEntityMetadata<T>- Returns:
-
getTableEntity
Description copied from interface:RelationalEntityMetadataReturns theRelationalPersistentEntitythat supposed to determine the table to be queried.- Specified by:
getTableEntityin interfaceRelationalEntityMetadata<T>- Returns:
-