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




Reply via email to