From: <one...@us...> - 2002-12-25 01:02:20
|
Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/engine In directory sc8-pr-cvs1:/tmp/cvs-serv25620/hibernate/engine Modified Files: Key.java Log Message: fixed a bug caching null one-to-one associations Index: Key.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/engine/Key.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Key.java 26 Nov 2002 03:35:41 -0000 1.3 --- Key.java 25 Dec 2002 01:02:16 -0000 1.4 *************** *** 4,7 **** --- 4,8 ---- import java.io.Serializable; + import cirrus.hibernate.AssertionFailure; import cirrus.hibernate.impl.CollectionPersister; import cirrus.hibernate.persister.ClassPersister; *************** *** 16,19 **** --- 17,21 ---- private Key(Serializable id, Serializable identifierSpace) { + if (id==null) throw new AssertionFailure("null identifier"); this.id=id; this.identifierSpace = identifierSpace; |