From: Gavin_King/Cirrus%<CI...@ci...> - 2002-06-09 08:34:07
|
Since nobody screamed frantic disagreement at my suggestion for a new Lifecycle interface, I've gone ahead and implemented it. I'd very much appreciate if people would look over what I've got there in CVS and make suggestions/criticisms. http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/hibernate/Hibernate/cirrus/hibernate/Lifecycle.java?rev=1.1&content-type=text/vnd.viewcvs-markup I also added Session.findIdentifiers() which returns object ids from a query rather than the actual objects. This will often be useful, especially for finder methods of BMP entity beans. I've also tidied up Session, removing some deprecated methods finally, in preparation for going out of beta. Hopefully the API is now pretty stable. Are there any extra "utility" methods that would be helpful, eg. Session.isPersistent(object)? I've properly Javadoc'd all the extra little "extension" APIs like ConnectionProvider, Type, IDGenerator, Dialect so people can feel more comfortable making customizations. Of course, we can't commit to keeping these interfaces as backward compatible as the cirrus.hibernate package because some of them simply _will_ need to change as functionality is added. |