Re: [Hibernate] serialized/deserialized criteria and query cache issue

2006-05-05 Thread Mario Ivankovits
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. Here http://opensour

Re: [Hibernate] serialized/deserialized criteria and query cache issue

2006-05-05 Thread Max Rydahl Andersen
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

Re: [Hibernate] serialized/deserialized criteria and query cache issue

2006-05-05 Thread Mario Ivankovits
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, thoug

Re: [Hibernate] serialized/deserialized criteria and query cache issue

2006-05-05 Thread Max Rydahl Andersen
On Fri, 05 May 2006 12:26:27 +0200, Mario Ivankovits <[EMAIL PROTECTED]> wrote: 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 m

Re: [Hibernate] serialized/deserialized criteria and query cache issue

2006-05-05 Thread Mario Ivankovits
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 cla

Re: [Hibernate] serialized/deserialized criteria and query cache issue

2006-05-05 Thread Max Rydahl Andersen
could probably just be solved with a proper equals/hashcode impl; but custom serialization would also work but not if it influences possible subclasses. Hi! I already posted on the user list, but I looks like due to the massive posts it got lost. I took many time to think about this issue,

[Hibernate] serialized/deserialized criteria and query cache issue

2006-05-04 Thread Mario Ivankovits
Hi! I already posted on the user list, but I looks like due to the massive posts it got lost. I took many time to think about this issue, and so I'll post it to your dev list as I'll eventually try to create a patch for it. Hibernate version: 3.2.0 rc1 A serialized/deserialized DetachedCriteria