📄 lazyinitializationexception.java
字号:
//$Id: LazyInitializationException.java,v 1.4.2.1 2003/10/25 07:43:51 oneovthafew Exp $package net.sf.hibernate;import net.sf.hibernate.exception.NestableRuntimeException;import org.apache.commons.logging.LogFactory;/** * A problem occurred trying to lazily initialize a collection or * proxy (for example the session was closed) or iterate query * results. * * @see Hibernate#initialize(java.lang.Object) * @see Hibernate#isInitialized(java.lang.Object) * @author Gavin King */public class LazyInitializationException extends NestableRuntimeException { public LazyInitializationException(Exception root) { super("Hibernate lazy instantiation problem", root); } public LazyInitializationException(String msg) { super(msg); LogFactory.getLog(LazyInitializationException.class).error(msg, this); } public LazyInitializationException(String msg, Exception root) { super(msg, root); } /** * @deprecated use <tt>getCause()</tt> * @see org.apache.commons.lang.exception.NestableRuntimeException#getCause() */ public Exception getRoot() { return (Exception) super.getCause(); } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -