|
From: Juergen H. <ju...@in...> - 2005-03-14 22:47:26
|
OK, I've added all overloaded methods for entity names to HibernateTemplate. I agree that it makes sense for the long term. I've also added them to the HibernateOperations interface, as there is no way to achieve the same call through the already existing interface methods. As a counterbalance, I've removed all methods that take Hibernate Type arguments from HibernateOperations and HibernateTemplate (only for the hibernate3 package). In my experience and from what I've seen in customer code, those are hardly ever used, or at least hardly ever necessary: Hibernate is usually able to guess the type correctly. We mainly had those methods with Type arguments in HibernateTemplate because the Hibernate 2.1 Session interface had them too. In Hibernate 3.0, those have been removed (that is, moved to the deprecated org.hibernate.classic.Session interface). I consider this a good occasion to not offer those methods in our hibernate3 package in the first place. If you need to set a specific Hibernate Type for a parameter, simply use a HibernateCallback and work with the Hibernate Query API. This is much nicer than those endless array arguments for one-line find methods. After all, one-line convenience methods are just nice for a limited number of arguments. Juergen -----Original Message----- From: spr...@li... [mailto:spr...@li...]On Behalf Of Rod Johnson Sent: Monday, March 14, 2005 7:58 PM To: spr...@li... Subject: Re: [Springframework-developer] Re: Hibernate3 entity names, direct Session access > It's 15 new methods - that's right. But these are very usefull methods. > Please add these methods just for sake of consistency. I think, in two > years, when HB3+ becomes mainstream and people will be using new features, > there will be a lot of questions about that. Don't You think? I agree with Artur. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |