|
From: Max R. A. <max...@jb...> - 2006-05-05 13:03:41
|
On Fri, 05 May 2006 14:52:08 +0200, Mario Ivankovits <ma...@op...> wrote: > Hi Max! >>> What do you think about an abstract class named >>> StatelessResultTransformer which will implement equals hashcode by >>> delegating to class.hashCode() and class.equals(). >> >> No. it should just implement a proper equals/hashcode, no need to >> introduce a new class. > Ok, I'll do so, though I am not happy with this. Why not ? it should only be done on resulttransformers which are actually possible to reuse. > > Not implementing those methods will not make the system fail, but will > result in unnecessary database requests. > And its damn hard to figure out why this happen, not only for you (the > developers) but also for the user - if not impossible for them. > This again might result in additional user posts in your forum. > > Introducing two new methods to the ResultTransformer interface would be > great, though, I know that such interface changes are bad. > For now, I'll add this to the ResultTransformer javadoc. Hopefully the > users read them. > > Thanks for your assistance! > Ciao, > Mario > -- -- Max Rydahl Andersen callto://max.rydahl.andersen Hibernate ma...@hi... http://hibernate.org JBoss Inc max...@jb... |