From: <one...@us...> - 2003-02-19 02:02:45
|
Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/engine In directory sc8-pr-cvs1:/tmp/cvs-serv6974/engine Modified Files: SessionImplementor.java Log Message: fixed a problem in ObjectType fixed a bug where PreparedStatements were returned to cache with setMaxRows() still set Index: SessionImplementor.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/engine/SessionImplementor.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** SessionImplementor.java 3 Feb 2003 10:28:46 -0000 1.7 --- SessionImplementor.java 19 Feb 2003 02:02:12 -0000 1.8 *************** *** 173,176 **** --- 173,185 ---- public Serializable getEntityIdentifier(Object obj); + /** + * Return the identifier of the persistent or transient object, or throw + * an exception if the instance is "unsaved" + */ + public Serializable getEntityIdentifierIfNotUnsaved(Object object) throws HibernateException; + + /** + * Instantiate the entity class, initializing with the given identifier + */ public Object instantiate(Class clazz, Serializable id) throws HibernateException; |