Class PojoUtils
java.lang.Object
ch.tocco.nice2.persist.core.api.hibernate.pojo.PojoUtils
Reflection utilities
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
denormalizeFieldName
(String name, EntityModel entityModel) static Class
<?> getEntityClass
(Object entityOrProxy) static String
getEntityClassName
(String modelName) getFieldNameFromAccessorName
(String methodName) static String
getGetterName
(String field) getProxyFromSession
(org.hibernate.engine.spi.SessionImplementor session, Class<?> clazz, Serializable id) static String
getSetterName
(String field) static void
static boolean
isSessionOnlyEntity
(EntityModel entityModel) static String
normalizeFieldName
(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
-