|
From: Mario I. <ma...@op...> - 2006-05-05 10:26:48
|
Max Rydahl Andersen schrieb: > could probably just be solved with a proper equals/hashcode impl Yes, I also thought about it, but also thought you'll consider this as a hack ;-) But with the "subclass" problem in mind it might be easier to solve it that way. What do you think about an abstract class named StatelessResultTransformer which will implement equals hashcode by delegating to class.hashCode() and class.equals(). Hibernates default transformer should extend from this class then. The user can make it statefull (if required) by overriding hashCode() equals(). Ciao, Mario |