Class PojoUtils
java.lang.Object
ch.tocco.nice2.persist.core.api.hibernate.pojo.PojoUtils
Reflection utilities
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdenormalizeFieldName(String name, EntityModel entityModel) static Class<?> getEntityClass(Object entityOrProxy) static StringgetEntityClassName(String modelName) getFieldNameFromAccessorName(String methodName) static StringgetGetterName(String field) getProxyFromSession(org.hibernate.engine.spi.SessionImplementor session, Class<?> clazz, Serializable id) static StringgetSetterName(String field) static voidstatic booleanisSessionOnlyEntity(EntityModel entityModel) static StringnormalizeFieldName(String name)
-
Field Details
-
POJO_PACKAGE
- See Also:
-
-
Method Details
-
getEntityClassName
-
getGetterName
-
getSetterName
-
getFieldNameFromAccessorName
-
normalizeFieldName
-
denormalizeFieldName
-
getEntityClass
-
isSessionOnlyEntity
-
getProxyFromSession
public static Optional<Object> getProxyFromSession(org.hibernate.engine.spi.SessionImplementor session, Class<?> clazz, Serializable id) - Returns:
- the proxy instance of a given entity
-
injectDependencies
public static void injectDependencies(Object instance, Map<Class<?>, Object> dependencies, BeanInfo beanInfo) throws IllegalAccessException, InvocationTargetException
-