Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/engine
In directory sc8-pr-cvs1:/tmp/cvs-serv20343/hibernate/engine
Modified Files:
SessionImplementor.java
Log Message:
added warning in custom type
made <parent> proxy-aware
Index: SessionImplementor.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/engine/SessionImplementor.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** SessionImplementor.java 28 Jan 2003 10:22:19 -0000 1.6
--- SessionImplementor.java 3 Feb 2003 10:28:46 -0000 1.7
***************
*** 136,140 ****
* Must be called before <tt>postHydrate()</tt>.
*/
! public void addUninitializedEntity(Key key, Object object, LockMode lockMode);
/**
* Register the "hydrated" state of an entity instance, after the first step of 2-phase loading
--- 136,140 ----
* Must be called before <tt>postHydrate()</tt>.
*/
! public void addUninitializedEntity(Key key, Object object, LockMode lockMode) throws HibernateException;
/**
* Register the "hydrated" state of an entity instance, after the first step of 2-phase loading
***************
*** 155,158 ****
--- 155,164 ----
*/
public Object proxyFor(ClassPersister persister, Key key, Object impl) throws HibernateException;
+ /**
+ * Return the existing proxy associated with the given <tt>Key</tt>, or the
+ * second argument (the entity associated with the key) if no proxy exists.
+ * (slower than the form above)
+ */
+ public Object proxyFor(Object impl) throws HibernateException;
/**
***************
*** 167,171 ****
public Serializable getEntityIdentifier(Object obj);
! public Object instantiate(ClassPersister persister, Serializable id) throws HibernateException;
}
--- 173,177 ----
public Serializable getEntityIdentifier(Object obj);
! public Object instantiate(Class clazz, Serializable id) throws HibernateException;
}
|