From: <one...@us...> - 2002-11-22 01:07:17
|
Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate In directory sc8-pr-cvs1:/tmp/cvs-serv30262/hibernate Modified Files: LazyInitializationException.java StaleObjectStateException.java Log Message: removed static final Log from exception classes provided composite key support for expressions with [] Index: LazyInitializationException.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/LazyInitializationException.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** LazyInitializationException.java 28 Oct 2002 19:37:20 -0000 1.5 --- LazyInitializationException.java 22 Nov 2002 01:07:11 -0000 1.6 *************** *** 3,7 **** import org.apache.commons.lang.exception.NestableRuntimeException; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; --- 3,6 ---- *************** *** 14,19 **** public class LazyInitializationException extends NestableRuntimeException { - private static final Log log = LogFactory.getLog(LazyInitializationException.class); - public LazyInitializationException(Exception root) { super("Hibernate lazy instantiation problem", root); --- 13,16 ---- *************** *** 22,26 **** public LazyInitializationException(String msg) { super(msg); ! log.error(msg, this); } --- 19,23 ---- public LazyInitializationException(String msg) { super(msg); ! LogFactory.getLog(LazyInitializationException.class).error(msg, this); } Index: StaleObjectStateException.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/StaleObjectStateException.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** StaleObjectStateException.java 24 Jul 2002 14:03:18 -0000 1.4 --- StaleObjectStateException.java 22 Nov 2002 01:07:11 -0000 1.5 *************** *** 4,8 **** import java.io.Serializable; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; --- 4,7 ---- *************** *** 14,21 **** public class StaleObjectStateException extends HibernateException { ! ! private static final Log log = LogFactory.getLog(StaleObjectStateException.class); ! ! private final Class persistentClass; private final Serializable identifier; --- 13,17 ---- public class StaleObjectStateException extends HibernateException { ! private final Class persistentClass; private final Serializable identifier; *************** *** 24,28 **** this.persistentClass = persistentClass; this.identifier = identifier; ! log.error("An operation failed due to stale data", this); } --- 20,24 ---- this.persistentClass = persistentClass; this.identifier = identifier; ! LogFactory.getLog(StaleObjectStateException.class).error("An operation failed due to stale data", this); } |