History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-22595
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Peter Gromov
Reporter: Simon Knott
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

ID reference attribute being marked as incorrect in Hibernate Named Queries

Created: 05 Oct 07 01:12   Updated: 13 Mar 08 21:29
Component/s: J2EE.Hibernate
Fix Version/s: Selena 7.0.4

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Windows XP, JDKU2

Build: 7,323
Fixed in build: 7,759
Severity: High


 Description  « Hide
Until recently the "id" attribute was a completely protected keyword in Hibernate which could be used as a reference to the identity attribute of an object in HQL queries. e.g.

select obj from MyObject obj where obj.id = :someId

We have many objects where the ID attribute is called something other than "id", but these are still referenced in HQL queries by the "id" reference attribute. The "id" attribute is being flagged as an error in named queries (potentially plain HQL queries as well, but we don't use them) which use these references.

See http://opensource.atlassian.com/projects/hibernate/browse/HHH-1851 for a better description - basically, the id attribute in queries should not be flagged as an error.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.