Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/engine
In directory usw-pr-cvs1:/tmp/cvs-serv27942/hibernate/engine
Modified Files:
Cascades.java
Log Message:
undeprecated update()
fixed BAD bug in generated SQL from some queries
support multi-argument SQL functions
Index: Cascades.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/engine/Cascades.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Cascades.java 29 Oct 2002 07:50:40 -0000 1.6
--- Cascades.java 14 Nov 2002 11:28:55 -0000 1.7
***************
*** 79,103 ****
};
- /**
- * @see cirrus.hibernate.Session#update(Object)
- * @deprecated
- */
- public static final CascadingAction ACTION_UPDATE = new CascadingAction() {
- void cascade(Session session, Object child) throws SQLException, HibernateException {
- if (
- !(child instanceof HibernateProxy) ||
- !HibernateProxyHelper.getLazyInitializer( (HibernateProxy) child ).isUninitialized()
- // updates don't cascade to uninitialized proxies
- ) {
- log.trace("cacading to update()");
- session.update(child);
- }
- }
- boolean shouldCascadeCollection(Object collection) {
- return !(collection instanceof PersistentCollection) || ( (PersistentCollection) collection ).wasInitialized();
- // updates don't cascade to uninitialized collections
- }
- };
-
// The types of children to cascade to:
--- 79,82 ----
|