On Fri, 05 May 2006 14:52:08 +0200, Mario Ivankovits <[EMAIL PROTECTED]> 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
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to