|
From: Mario I. <ma...@op...> - 2006-05-05 12:52:26
|
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. 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 |