From: Sergey K. <jus...@us...> - 2005-03-26 13:24:50
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1460/src/NHibernate/Persister Modified Files: AbstractEntityPersister.cs EntityPersister.cs IClassPersister.cs Log Message: Ported property-ref attribute implementation from Hibernate 2.1 Index: IClassPersister.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister/IClassPersister.cs,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** IClassPersister.cs 14 Mar 2005 18:53:15 -0000 1.11 --- IClassPersister.cs 26 Mar 2005 13:24:37 -0000 1.12 *************** *** 127,130 **** --- 127,138 ---- /// <summary> + /// Set the value of a particular property + /// </summary> + /// <param name="obj"></param> + /// <param name="name"></param> + /// <param name="value"></param> + void SetPropertyValue( object obj, string name, object value ); + + /// <summary> /// Get the value of a particular property /// </summary> *************** *** 135,138 **** --- 143,154 ---- /// <summary> + /// Get the value of a particular property + /// </summary> + /// <param name="obj"></param> + /// <param name="name"></param> + /// <returns></returns> + object GetPropertyValue( object obj, string name ); + + /// <summary> /// Get the type of a particular property /// </summary> Index: EntityPersister.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister/EntityPersister.cs,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** EntityPersister.cs 14 Mar 2005 22:41:38 -0000 1.38 --- EntityPersister.cs 26 Mar 2005 13:24:37 -0000 1.39 *************** *** 428,431 **** --- 428,433 ---- loaders.Add( LockMode.UpgradeNoWait, new SimpleEntityLoader( this, selectForUpdateNoWaitString, LockMode.UpgradeNoWait, factory.Dialect ) ); + + CreateUniqueKeyLoaders( factory ); } Index: AbstractEntityPersister.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister/AbstractEntityPersister.cs,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** AbstractEntityPersister.cs 14 Mar 2005 18:53:15 -0000 1.35 --- AbstractEntityPersister.cs 26 Mar 2005 13:24:37 -0000 1.36 *************** *** 1336,1340 **** // TODO: 2.1 - Change EntityLoader to handle this //uniqueKeyLoaders.Add( propertyNames[ i ], new EntityLoader( this, columns, uniqueKeyType, factory ) ); ! //uniqueKeyLoaders.Add( propertyNames[ i ], new EntityLoader( this, columns, uniqueKeyType, factory ) ); } } --- 1336,1340 ---- // TODO: 2.1 - Change EntityLoader to handle this //uniqueKeyLoaders.Add( propertyNames[ i ], new EntityLoader( this, columns, uniqueKeyType, factory ) ); ! uniqueKeyLoaders.Add( propertyNames[ i ], new EntityLoader( this, columns, uniqueKeyType, 1, factory ) ); } } |