From: <one...@us...> - 2002-11-05 06:46:10
|
Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/engine In directory usw-pr-cvs1:/tmp/cvs-serv4847/hibernate/engine Modified Files: Key.java Log Message: fixed minor problem with proxies for classes that override finalize Index: Key.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/engine/Key.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Key.java 1 Oct 2002 01:25:29 -0000 1.1 --- Key.java 5 Nov 2002 06:46:06 -0000 1.2 *************** *** 20,35 **** } public Key(Serializable id, ClassPersister p) { this( id, p.getIdentifierSpace() ); } public Key(Serializable id, CollectionPersister p) { this( id, p.getQualifiedTableName() ); } ! public Serializable getIdentifier() { return id; } ! public boolean equals(Object other) { Key otherKey = (Key) other; --- 20,44 ---- } + /** + * Construct a unique identifier for an entity class instance + */ public Key(Serializable id, ClassPersister p) { this( id, p.getIdentifierSpace() ); } + /** + * Construct a unique identifier for a collection instance + */ public Key(Serializable id, CollectionPersister p) { this( id, p.getQualifiedTableName() ); } ! ! /** ! * Get the user-visible identifier ! */ public Serializable getIdentifier() { return id; } ! public boolean equals(Object other) { Key otherKey = (Key) other; |