From: <one...@us...> - 2003-01-26 01:34:08
|
Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/collection In directory sc8-pr-cvs1:/tmp/cvs-serv14128/sf/hibernate/collection Modified Files: CollectionPersister.java Log Message: redesigned configuration API Index: CollectionPersister.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/collection/CollectionPersister.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** CollectionPersister.java 20 Jan 2003 12:48:09 -0000 1.5 --- CollectionPersister.java 26 Jan 2003 01:33:34 -0000 1.6 *************** *** 15,21 **** import net.sf.hibernate.cache.CacheConcurrencyStrategy; import net.sf.hibernate.cache.CacheException; import net.sf.hibernate.engine.SessionFactoryImplementor; import net.sf.hibernate.engine.SessionImplementor; - import net.sf.hibernate.impl.DatastoreImpl; import net.sf.hibernate.loader.CollectionInitializer; import net.sf.hibernate.loader.CollectionLoader; --- 15,21 ---- import net.sf.hibernate.cache.CacheConcurrencyStrategy; import net.sf.hibernate.cache.CacheException; + import net.sf.hibernate.cfg.Configuration; import net.sf.hibernate.engine.SessionFactoryImplementor; import net.sf.hibernate.engine.SessionImplementor; import net.sf.hibernate.loader.CollectionInitializer; import net.sf.hibernate.loader.CollectionLoader; *************** *** 92,96 **** ! public CollectionPersister(Collection collection, DatastoreImpl datastore, SessionFactoryImplementor factory) throws MappingException, CacheException { collectionType = collection.getType(); --- 92,96 ---- ! public CollectionPersister(Collection collection, Configuration datastore, SessionFactoryImplementor factory) throws MappingException, CacheException { collectionType = collection.getType(); *************** *** 123,127 **** EntityType type = collection.getOneToMany().getType(); elementType = type; ! PersistentClass associatedClass = datastore.getPersistentClass( type.getPersistentClass() ); span = associatedClass.getIdentifier().getColumnSpan(); elementColumnNames = new String[span]; --- 123,127 ---- EntityType type = collection.getOneToMany().getType(); elementType = type; ! PersistentClass associatedClass = datastore.getClassMapping( type.getPersistentClass() ); span = associatedClass.getIdentifier().getColumnSpan(); elementColumnNames = new String[span]; |