As promised, I have redesigned the Hibernate2 config API.

Usage now looks like:

SessionFactory sf = new Configuration()
   .addResource("foo.hbm.xml")
   .addClass(Bar.class)
   .setProperties(props)
   .setInterceptor( new MyInterceptor() )
   .buildSessionFactory();

Alternatively, to use an XML config, you could use

SessionFactory sf = new Configuration()
   .configure("hibernate.cfg.xml")
   .buildSessionFactory();

XML config files may now contain only one
<session-factory> element.

HibernateService now inherits Configuration.

There is no more Datastore interface and all config-
oriented stuff is moved out of the toplevel and impl
packages.

Please, please check all this stuff out, and let me
know if it sucks! I _think_ its a big improvement.

TIA

Gavin




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to