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 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 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

[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

Re: [Hibernate] hibernate developer forum

2005-09-13 Thread Mario Ivankovits
Christian Bauer wrote: May I suggest to upen a "Hibernate Developer" forum at forum.hibernate.org? Hibernate developers discuss on this mailing list. I understand this, but sometimes we (the users - we are also developer - at least some of us) also have some "in deep" questions and they get l

[Hibernate] hibernate developer forum

2005-09-12 Thread Mario Ivankovits
Hi! May I suggest to upen a "Hibernate Developer" forum at forum.hibernate.org? After some days of trying to do some (maybe strange) things with hibernate I came to a point where I need some discussion. This question is definitely not sort of "how do I map " etc but more that I need discus

Re: [Hibernate] extend criteria api with "fragments"

2005-09-05 Thread Mario Ivankovits
Gavin King wrote: Your usecase can be handled by implementing Projection with your own class. It is absolutely possible with no change to the criteria API. Might be, but then I cant reuse already existing projections. How should I reuse "Projections.avg(" if it tries in toSqlString to resol

[Hibernate] extend criteria api with "fragments"

2005-09-05 Thread Mario Ivankovits
Hi! I would like to ask if this is on a todo list to support something like select sum(cast(colxxx as numeric)) from table with the criteria api. Today its not possible as all the projection/expression/etc only use "String" for the property name. What I would propose will break the current c

Re: [Hibernate] Why three?

2005-05-19 Thread Mario Ivankovits
Max Rydahl Andersen wrote: On Thu, 19 May 2005 14:39:43 +0200, Christian Bauer <[EMAIL PROTECTED]> wrote: Why is cglib now three JAR files? Can we repackage this? Questions about "ClassNotFoundError" etc. appear much more often now with H3, we have to reduce dependencies. If we want a foolpr

Re: [Hibernate] annotation: patch for bind* for comp-id assoc and fetchmode

2005-03-28 Thread Mario Ivankovits
I have seen you already added the isInsertable and isUpdateable in the latest cvs version. But the lazy flag is still fixed "false". This is the case for all associations. Could it be changed to honor the annotation setup? Property prop = makeProperty(propertyName, value, columns[0].isInsertab

Re: [Hibernate] HQL 3.1

2005-03-28 Thread Mario Ivankovits
Do you think we could and should support the ANSI SQL style periods and temporal operators (overlaps, during, before, after, etc.) in a portable way? from Contract c where [c.effectiveStartDate, c.effectiveEndDate] overlaps (:start, :end] (Unfortunately, Java has no Period or Interval class

[Hibernate] problems w cascade=refresh

2005-03-25 Thread Mario Ivankovits
Hello! Now that I am subscribed I would like to take the moment to please you to have a look at http://forum.hibernate.org/viewtopic.php?t=940379 What my (forum) attached (standalone) example should view is that the session.refresh() do not cascade, well, it cascades in the means that select st

[Hibernate] annotation: patch for bind* for comp-id assoc and fetchmode

2005-03-25 Thread Mario Ivankovits
Hello Emmanuel! Heres the copy from the forum: Before I submit a patch (if needet) some little discussion please. I made the @ManyToOne working for me after I changed in function "bindManyToOne" Property prop = makeProperty(propertyName, value, true, true, false, cascade