Class DinoJdbcPersistentEntity<T>
java.lang.Object
org.springframework.data.mapping.model.BasicPersistentEntity<T,org.springframework.data.relational.core.mapping.RelationalPersistentProperty>
cn.dinodev.spring.data.jdbc.mapping.DinoJdbcPersistentEntity<T>
- All Implemented Interfaces:
Iterable<org.springframework.data.relational.core.mapping.RelationalPersistentProperty>,org.springframework.beans.factory.Aware,org.springframework.context.EnvironmentAware,org.springframework.data.mapping.model.MutablePersistentEntity<T,,org.springframework.data.relational.core.mapping.RelationalPersistentProperty> org.springframework.data.mapping.PersistentEntity<T,,org.springframework.data.relational.core.mapping.RelationalPersistentProperty> org.springframework.data.relational.core.mapping.RelationalPersistentEntity<T>
public class DinoJdbcPersistentEntity<T>
extends org.springframework.data.mapping.model.BasicPersistentEntity<T,org.springframework.data.relational.core.mapping.RelationalPersistentProperty>
implements org.springframework.data.relational.core.mapping.RelationalPersistentEntity<T>
Default implementation of
RelationalPersistentEntity.
support jakarta persistence annotation, such as @Table- Author:
- Cody Lu
-
Constructor Summary
ConstructorsConstructorDescriptionDinoJdbcPersistentEntity(org.springframework.data.util.TypeInformation<T> information, org.springframework.data.relational.core.mapping.NamingStrategy namingStrategy) Creates a newDinoJdbcPersistentEntityfor the givenTypeInformation. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.relational.core.sql.SqlIdentifierorg.springframework.data.relational.core.sql.SqlIdentifierbooleanvoidsetForceQuote(boolean forceQuote) toString()Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity
addAssociation, addPersistentProperty, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEvaluationContext, getEvaluationContext, getFallbackIsNewStrategy, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getType, getTypeAlias, getTypeInformation, getValueEvaluationContext, getValueEvaluationContext, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, returnPropertyIfBetterIdPropertyCandidateOrNull, setEnvironment, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verifyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.context.EnvironmentAware
setEnvironmentMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.springframework.data.mapping.model.MutablePersistentEntity
addAssociation, addPersistentProperty, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verifyMethods inherited from interface org.springframework.data.mapping.PersistentEntity
doWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulationMethods inherited from interface org.springframework.data.relational.core.mapping.RelationalPersistentEntity
getQualifiedTableName
-
Constructor Details
-
DinoJdbcPersistentEntity
public DinoJdbcPersistentEntity(org.springframework.data.util.TypeInformation<T> information, org.springframework.data.relational.core.mapping.NamingStrategy namingStrategy) Creates a newDinoJdbcPersistentEntityfor the givenTypeInformation.- Parameters:
information- must not be null.
-
-
Method Details
-
isForceQuote
public boolean isForceQuote() -
setForceQuote
public void setForceQuote(boolean forceQuote) -
getTableName
public org.springframework.data.relational.core.sql.SqlIdentifier getTableName()- Specified by:
getTableNamein interfaceorg.springframework.data.relational.core.mapping.RelationalPersistentEntity<T>
-
getIdColumn
public org.springframework.data.relational.core.sql.SqlIdentifier getIdColumn()- Specified by:
getIdColumnin interfaceorg.springframework.data.relational.core.mapping.RelationalPersistentEntity<T>
-
toString
-