From: <one...@us...> - 2002-11-25 10:44:52
|
Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/impl In directory sc8-pr-cvs1:/tmp/cvs-serv7421/hibernate/impl Modified Files: SessionImpl.java Log Message: removed shortcut for immutable classes, because it would break collections Index: SessionImpl.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/impl/SessionImpl.java,v retrieving revision 1.152 retrieving revision 1.153 diff -C2 -d -r1.152 -r1.153 *** SessionImpl.java 20 Nov 2002 14:20:08 -0000 1.152 --- SessionImpl.java 25 Nov 2002 10:44:49 -0000 1.153 *************** *** 1700,1705 **** ClassPersister persister = entry.persister; - if ( entry.existsInDatabase && !persister.isMutable() ) continue; - // make sure user didn't mangle the id if ( persister.hasIdentifierProperty() ) { --- 1700,1703 ---- *************** *** 1793,1797 **** else { ! //now update the object .. has to be outside if block because of nested // collections if (substitute) persister.setPropertyValues(object, values); --- 1791,1795 ---- else { ! // now update the object .. has to be outside if block because of nested // collections if (substitute) persister.setPropertyValues(object, values); |