📄 hibernateproxyhelper.java
字号:
//$Id: HibernateProxyHelper.java 4453 2004-08-29 07:31:03Z oneovthafew $package org.hibernate.proxy;/** * Utility methods for working with proxies. (this class is being phased out) * @author Gavin King */public final class HibernateProxyHelper { /** * Get the class of an instance or the underlying class * of a proxy (without initializing the proxy!). It is * almost always better to use the entity name! */ public static Class getClassWithoutInitializingProxy(Object object) { if (object instanceof HibernateProxy) { HibernateProxy proxy = (HibernateProxy) object; LazyInitializer li = proxy.getHibernateLazyInitializer(); return li.getPersistentClass(); } else { return object.getClass(); } } private HibernateProxyHelper() { //cant instantiate }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -