From: <leg...@at...> - 2003-08-01 14:06:14
|
Message: The following issue has been closed. Resolver: Gavin King Date: Fri, 1 Aug 2003 9:05 AM As per the Hibernate HQL documentation, "id" is a special property name that *always* refers to the identifier property. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-222 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-222 Summary: id is transated the wrong way in OQL Type: Bug Status: Closed Priority: Critical Resolution: REJECTED Project: Hibernate2 Components: core Versions: 2.0.1 Assignee: Reporter: pk Created: Fri, 1 Aug 2003 8:57 AM Updated: Fri, 1 Aug 2003 9:05 AM Environment: windows jdk1.3 Description: this is part of the mapping -----8<-----8<-----8<-----8<-----8<-----8<------- <class name="be.benevita.bean.impl.MemberDossier" table="T_MEMBERDOSSIER"> <id name="HibernateID" column="HIBERNATE_ID" type="long"> <generator class="native"/> </id> <property name="id" column="DOSSIER_ID"/> -----8<-----8<-----8<-----8<-----8<-----8<------- when we execute the following oql -----8<-----8<-----8<-----8<-----8<-----8<------- from MemberDossier as memberDossier where memberDossier.id = :dossierName -----8<-----8<-----8<-----8<-----8<-----8<------- hibernate creates an SQL ".... where Hibernate0_.HIBERNATE_ID=? ..." it should be: ".... where Hibernate0_.ID=? ..." --------------------------------------------------------------------- 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/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |