From: <one...@us...> - 2002-11-14 11:28:59
|
Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate In directory usw-pr-cvs1:/tmp/cvs-serv27942/hibernate Modified Files: Session.java Log Message: undeprecated update() fixed BAD bug in generated SQL from some queries support multi-argument SQL functions Index: Session.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/Session.java,v retrieving revision 1.78 retrieving revision 1.79 diff -C2 -d -r1.78 -r1.79 *** Session.java 5 Nov 2002 16:58:13 -0000 1.78 --- Session.java 14 Nov 2002 11:28:54 -0000 1.79 *************** *** 245,248 **** --- 245,265 ---- /** + * Update the persistent instance with the identifier of the given transient + * instance. If there is a persistent instance with the same identifier, + * an exception is thrown.<br> + * <br> + * If the given transient instance has a <tt>null</tt> identifier, an exception + * will be thrown.<br> + * <br> + * <em>The class may not contain toplevel collections or collections + * with subcollections.</em> + * + * @param object a transient instance containing updated state + * @throws SQLException + * @throws HibernateException + */ + public void update(Object object) throws SQLException, HibernateException; + + /** * Update the persistent state associated with the given identifier. An exception * is thrown if there is a persistent instance with the same identifier in the *************** *** 510,534 **** //DEPRECATED: - /** - * Update the persistent instance with the identifier of the given transient - * instance. If there is a persistent instance with the same identifier, - * an exception is thrown.<br> - * <br> - * If the given transient instance has a <tt>null</tt> identifier, the session - * will <tt>save()</tt> the instance with a generated identifier. This is useful - * used in conjuction with cascading updates to persist a graph of transient - * objects, some of which are newly instantiated.<br> - * <br> - * <em>The class may not contain toplevel collections or collections - * with subcollections.</em> - * - * @deprecated use <literal>saveOrUpdate()</literal>. - * - * @param object a transient instance containing updated state - * @throws SQLException - * @throws HibernateException - */ - public void update(Object object) throws SQLException, HibernateException; - /** * Execute a query, returning only the identifiers. --- 527,530 ---- |