Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/type
In directory sc8-pr-cvs1:/tmp/cvs-serv13407/sf/hibernate/type
Modified Files:
TypeFactory.java
Log Message:
added mutable attribute to <property> element
Index: TypeFactory.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/type/TypeFactory.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** TypeFactory.java 5 Jan 2003 02:11:24 -0000 1.4
--- TypeFactory.java 24 Jan 2003 16:16:03 -0000 1.5
***************
*** 184,190 ****
* Deep copy values in the first array into the second
*/
! public static void deepCopy(Object[] values, Type[] types, Object[] target) throws HibernateException {
for ( int i=0; i<types.length; i++ ) {
! target[i] = types[i].deepCopy( values[i] );
}
}
--- 184,190 ----
* Deep copy values in the first array into the second
*/
! public static void deepCopy(Object[] values, Type[] types, boolean[] copy, Object[] target) throws HibernateException {
for ( int i=0; i<types.length; i++ ) {
! if ( copy[i] ) target[i] = types[i].deepCopy( values[i] );
}
}
***************
*** 194,202 ****
* the dirty fields or <tt>null</tt> if no fields are dirty.
*/
! public static int[] findDirty(Type[] types, Object[] x, Object[] y, Object owner, SessionFactoryImplementor factory) throws HibernateException {
int[] results = null;
int count = 0;
for (int i=0; i<types.length; i++) {
! if ( types[i].isDirty( x[i], y[i], owner, factory ) ) {
if (results==null) results = new int[ types.length ];
results[count++]=i;
--- 194,202 ----
* the dirty fields or <tt>null</tt> if no fields are dirty.
*/
! public static int[] findDirty(Type[] types, Object[] x, Object[] y, boolean[] check, Object owner, SessionFactoryImplementor factory) throws HibernateException {
int[] results = null;
int count = 0;
for (int i=0; i<types.length; i++) {
! if ( check[i] && types[i].isDirty( x[i], y[i], owner, factory ) ) {
if (results==null) results = new int[ types.length ];
results[count++]=i;
|