From: <one...@us...> - 2003-01-01 15:12:56
|
Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/impl In directory sc8-pr-cvs1:/tmp/cvs-serv12542/src/net/sf/hibernate/impl Modified Files: CollectionPersister.java SessionImpl.java Log Message: renamed readonly to inverse Index: CollectionPersister.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/impl/CollectionPersister.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** CollectionPersister.java 1 Jan 2003 13:54:46 -0000 1.1.1.1 --- CollectionPersister.java 1 Jan 2003 15:12:52 -0000 1.2 *************** *** 62,66 **** private transient final boolean hasIndex; private transient final boolean isLazy; ! private transient final boolean isReadonly; private transient final Class elementClass; private transient final CacheConcurrencyStrategy cache; --- 62,66 ---- private transient final boolean hasIndex; private transient final boolean isLazy; ! private transient final boolean isInverse; private transient final Class elementClass; private transient final CacheConcurrencyStrategy cache; *************** *** 170,174 **** isLazy = collection.isLazy(); ! isReadonly = collection.isReadOnly(); if ( collection.isArray() ) { --- 170,174 ---- isLazy = collection.isLazy(); ! isInverse = collection.isInverse(); if ( collection.isArray() ) { *************** *** 466,471 **** public boolean isLazy() { return isLazy; } ! public boolean isReadOnly() { ! return isReadonly; } --- 466,471 ---- public boolean isLazy() { return isLazy; } ! public boolean isInverse() { ! return isInverse; } *************** *** 476,480 **** public final void remove(Serializable id, SessionImplementor session) throws SQLException, HibernateException { ! if ( !isReadonly ) { if ( log.isDebugEnabled() ) log.debug("Deleting collection: " + role + "#" + id); --- 476,480 ---- public final void remove(Serializable id, SessionImplementor session) throws SQLException, HibernateException { ! if ( !isInverse ) { if ( log.isDebugEnabled() ) log.debug("Deleting collection: " + role + "#" + id); *************** *** 500,504 **** throws SQLException, HibernateException { ! if (!isReadonly) { if ( log.isDebugEnabled() ) log.debug("Inserting collection: " + role + "#" + id); --- 500,504 ---- throws SQLException, HibernateException { ! if (!isInverse) { if ( log.isDebugEnabled() ) log.debug("Inserting collection: " + role + "#" + id); *************** *** 533,537 **** throws SQLException, HibernateException { ! if (!isReadonly) { if ( log.isDebugEnabled() ) log.debug("Deleting rows of collection: " + role + "#" + id); --- 533,537 ---- throws SQLException, HibernateException { ! if (!isInverse) { if ( log.isDebugEnabled() ) log.debug("Deleting rows of collection: " + role + "#" + id); *************** *** 627,631 **** public final void updateRows(PersistentCollection collection, Serializable id, SessionImplementor session) throws SQLException, HibernateException { ! if (!isReadonly) { if ( log.isDebugEnabled() ) log.debug("Updating rows of collection: " + role + "#" + id); --- 627,631 ---- public final void updateRows(PersistentCollection collection, Serializable id, SessionImplementor session) throws SQLException, HibernateException { ! if (!isInverse) { if ( log.isDebugEnabled() ) log.debug("Updating rows of collection: " + role + "#" + id); *************** *** 644,648 **** throws SQLException, HibernateException { ! if (!isReadonly) { if ( log.isDebugEnabled() ) log.debug("Inserting rows of collection: " + role + "#" + id); --- 644,648 ---- throws SQLException, HibernateException { ! if (!isInverse) { if ( log.isDebugEnabled() ) log.debug("Inserting rows of collection: " + role + "#" + id); Index: SessionImpl.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/impl/SessionImpl.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SessionImpl.java 1 Jan 2003 13:56:04 -0000 1.1.1.1 --- SessionImpl.java 1 Jan 2003 15:12:52 -0000 1.2 *************** *** 2169,2173 **** public boolean isCollectionReadOnly(PersistentCollection collection) { CollectionEntry ce = getCollectionEntry(collection); ! return ce!=null && ce.loadedPersister.isReadOnly(); } --- 2169,2173 ---- public boolean isCollectionReadOnly(PersistentCollection collection) { CollectionEntry ce = getCollectionEntry(collection); ! return ce!=null && ce.loadedPersister.isInverse(); } |