From: <one...@us...> - 2003-01-22 13:32:23
|
Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/impl In directory sc8-pr-cvs1:/tmp/cvs-serv1093/hibernate/impl Modified Files: SessionImpl.java Log Message: update() support for embedded composite ids Index: SessionImpl.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/impl/SessionImpl.java,v retrieving revision 1.161 retrieving revision 1.162 diff -C2 -d -r1.161 -r1.162 *** SessionImpl.java 4 Jan 2003 13:05:14 -0000 1.161 --- SessionImpl.java 22 Jan 2003 13:32:19 -0000 1.162 *************** *** 886,890 **** ClassPersister persister = getPersister(object); ! if ( persister.hasIdentifierProperty() ) { if ( !isEntryFor(object) ) { //the object is transient --- 886,890 ---- ClassPersister persister = getPersister(object); ! //if ( persister.hasIdentifierProperty() ) { if ( !isEntryFor(object) ) { //the object is transient *************** *** 894,898 **** if (id==null) { // assume this is a newly instantiated transient object ! throw new HibernateException("The given object has a null identifier property " + infoString(persister)); } else { --- 894,900 ---- if (id==null) { // assume this is a newly instantiated transient object ! throw new HibernateException( ! "The given object has a null identifier property " + infoString(persister) ! ); } else { *************** *** 902,909 **** } ! } else { throw new HibernateException("The given object has no identifier property - you must supply an id " + infoString(persister)); ! } } --- 904,911 ---- } ! /*} else { throw new HibernateException("The given object has no identifier property - you must supply an id " + infoString(persister)); ! }*/ } |