Package net.ideahut.springboot.entity
Class EntityInfo
java.lang.Object
net.ideahut.springboot.entity.EntityInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String,AttributeOverrides> protected Map<String,JoinColumns> protected EntityInfo -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEntityInfo(TrxManagerInfo trxManagerInfo, Class<?> entityClass) protectedEntityInfo(TrxManagerInfo trxManagerInfo, Class<?> entityClass, org.hibernate.mapping.Table table) -
Method Summary
Modifier and TypeMethodDescription<T> T<T extends Annotation>
TgetAnnotation(Class<T> annotationClass) getAnnotationFields(Class<? extends Annotation> annotationClass) <T extends Annotation>
T[]getAnnotationsByType(Class<T> annotationClass) getColumnConverter(String anyField) getColumnInfo(String name) Class<?>getFieldInfo(String name) getFieldTransient(String name) protected net.ideahut.springboot.entity.NativeEntityDefinitionprotected net.ideahut.springboot.entity.StandardEntityDefinitionorg.hibernate.mapping.TablegetTable()booleanisEntity()booleanisUniqueField(String field) <T> booleanmerge(net.ideahut.springboot.object.MapStringObject source, T target, Collection<String> skipFields) <T> booleanmerge(T source, T target, boolean skipNull, Collection<String> skipFields) nullLazyCollection(Object object) protected voidprotected voidprotected voidprotected void<T> voidwriteJoinColumns(T entity)
-
Field Details
-
mergeIgnoredFields
-
joinColumns
-
attributeOverrides
-
parentInfo
-
-
Constructor Details
-
EntityInfo
- Throws:
Exception
-
EntityInfo
protected EntityInfo(TrxManagerInfo trxManagerInfo, Class<?> entityClass, org.hibernate.mapping.Table table) throws Exception - Throws:
Exception
-
-
Method Details
-
getTrxManagerInfo
-
getEntityClass
-
getAnnotation
-
getAnnotationsByType
-
getAnnotations
-
getAnnotationFields
-
getTable
public org.hibernate.mapping.Table getTable() -
isEntity
public boolean isEntity() -
getFieldTransient
-
getFieldTransientNames
-
getFieldInfo
-
getFieldInfoNames
-
getColumnInfo
-
getColumnInfoNames
-
getEagerObjectFields
-
getLazyObjectFields
-
getLazyCollectionFields
-
isUniqueField
-
getIdInfo
-
getParentInfo
-
getColumnConverter
-
createEntity
- Throws:
Exception
-
getStandardDefinition
protected net.ideahut.springboot.entity.StandardEntityDefinition getStandardDefinition() -
getNativeDefinition
protected net.ideahut.springboot.entity.NativeEntityDefinition getNativeDefinition() -
writeJoinColumns
- Throws:
Exception
-
loadLazy
-
nullLazyCollection
-
merge
-
merge
public <T> boolean merge(net.ideahut.springboot.object.MapStringObject source, T target, Collection<String> skipFields) throws Exception - Throws:
Exception
-
prepareConverters
protected void prepareConverters() -
prepareAttributeOverrides
protected void prepareAttributeOverrides() -
prepareJoinColumns
protected void prepareJoinColumns() -
prepareDefinition
protected void prepareDefinition()
-