Ah, yeah I can see how that could happen. I'll fix it tomorrow. This is a
fairly new bug, I think.
----- Original Message -----
From: "Andrea Aime" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 25, 2002 1:23 AM
Subject: [Hibernate] Another bug (this is not my lucky day...)
> I've found another bug... let's consider the following mapping:
>
> <class name="it.satanet.ketpl.model.Customer" table="customer">
> <id name="id" column="id" type="long" unsaved-value="null">
> <generator class="vm.long"/>
> </id>
> <property name="idCode" column="idcode" type="long" not-null="true"/>
> </class>
>
> the following query:
>
> Iterator num = s.iterate("select max(c.idCode) from c in " +
> Customer.class);
>
> will return the max of the id property, not that of idCode! Changing the
> column
> name doesn't help, changing the property name solves the problem.
> Best regards
>
> Andrea "lucky man" Aime
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Influence the future
> of Java(TM) technology. Join the Java Community
> Process(SM) (JCP(SM)) program now.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en
> _______________________________________________
> hibernate-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
-------------------------------------------------------
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel