From: <leg...@at...> - 2003-06-11 13:07:19
|
Message: The following issue has been closed. Resolver: Gavin King Date: Wed, 11 Jun 2003 8:05 AM I don't believe this issue affects Hibernate2. If it _does_, please reopen. (I think there is even a test for this.) --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-16 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-16 Summary: Query generation bug Type: Bug Status: Closed Priority: Major Resolution: FIXED Project: Hibernate2 Fix Fors: 2.0 final Assignee: Gavin King Reporter: Max Rydahl Andersen Created: Sat, 3 May 2003 10:05 AM Updated: Wed, 11 Jun 2003 8:05 AM Description: Query generation bug Persistent class "Inquiry" contains property "idCustomerInquiry". Query: "select max(iq.idCustomerInquiry) from Inquiry as iq where iq.customer.id=?" is translated into wrong: "select max(iq.idCustomercom.qbizm.ik.core.impl.persistobj.Inquiry) from Inquiry as iq where iq.customer.id=?" instead of correct: "select max(iq.idCustomerInquiry) from com.qbizm.ik.core.impl.persistobj.Inquiry as iq where iq.customer.id=?" Problem is only if property name contains class name as its substring. When property "idCustomerInquiry" is renamed into "idCustomerInq", query translation is OK. Jan Dundacek (original: http://sourceforge.net/tracker/index.php?func=detail&aid=726738&group_id=40712&atid=428708) --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |