From: <one...@us...> - 2003-02-22 06:42:17
|
Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/test In directory sc8-pr-cvs1:/tmp/cvs-serv17247/sf/hibernate/test Modified Files: FooBarTest.java Log Message: fixed a problem with HibernateService added convenience createBlob() improved some logging added SessionFactory.close() Index: FooBarTest.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/test/FooBarTest.java,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** FooBarTest.java 19 Feb 2003 02:02:13 -0000 1.23 --- FooBarTest.java 22 Feb 2003 06:42:07 -0000 1.24 *************** *** 43,46 **** --- 43,47 ---- import net.sf.hibernate.dialect.SAPDBDialect; import net.sf.hibernate.dialect.SybaseDialect; + import net.sf.hibernate.jmx.HibernateService; import net.sf.hibernate.proxy.HibernateProxy; import net.sf.hibernate.type.Type; *************** *** 2683,2686 **** --- 2684,2700 ---- s.connection().commit(); s.close(); + } + + public void testService() throws Exception { + HibernateService hs = new HibernateService(); + hs.setJndiName("SessionFactory"); + hs.setMapResources("net/sf/hibernate/test/Simple.hbm.xml, net/sf/hibernate/test/Blobber.hbm.xml"); + hs.setShowSql(true); + hs.setUseOuterJoin(false); + hs.start(); + hs.stop(); + hs.setProperty("foo", "bar"); + hs.start(); + hs.stop(); } |