From: <one...@us...> - 2003-01-26 01:33:44
|
Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/odmg In directory sc8-pr-cvs1:/tmp/cvs-serv14128/sf/hibernate/odmg Modified Files: Database.java Log Message: redesigned configuration API Index: Database.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/odmg/Database.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Database.java 14 Jan 2003 13:42:16 -0000 1.4 --- Database.java 26 Jan 2003 01:33:36 -0000 1.5 *************** *** 6,14 **** import org.odmg.ObjectNameNotFoundException; import org.odmg.ObjectNameNotUniqueException; ! import net.sf.hibernate.Hibernate; import net.sf.hibernate.HibernateException; import net.sf.hibernate.ObjectNotFoundException; import net.sf.hibernate.Session; import net.sf.hibernate.SessionFactory; import net.sf.hibernate.impl.SessionFactoryObjectFactory; --- 6,15 ---- import org.odmg.ObjectNameNotFoundException; import org.odmg.ObjectNameNotUniqueException; ! import net.sf.hibernate.HibernateException; import net.sf.hibernate.ObjectNotFoundException; import net.sf.hibernate.Session; import net.sf.hibernate.SessionFactory; + import net.sf.hibernate.cfg.Configuration; import net.sf.hibernate.impl.SessionFactoryObjectFactory; *************** *** 29,32 **** --- 30,34 ---- */ public class Database implements org.odmg.Database { + private SessionFactory sessionFactory; private final ThreadLocal threadTransaction = new ThreadLocal(); *************** *** 80,84 **** public void open(String name, int accessMode) throws ODMGException { try { ! Hibernate.configure(); } catch (HibernateException he) { --- 82,86 ---- public void open(String name, int accessMode) throws ODMGException { try { ! new Configuration().configure(); } catch (HibernateException he) { |