Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Peter Gromov 
Subsystem
J2EE.Hibernate 
Affected versions
Fixed in
Fixed in build
Next build 
Build
7323
Fixed in build
7759
Severity
0
  • Submitted by   Simon Knott
    2 years ago (05 Oct 2007 01:12)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:53)
  • Jira: IDEA-41317
    (history, comments)

IDEA-41317

ID reference attribute being marked as incorrect in Hibernate Named Queries

0
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.

Environment: Windows XP, JDKU2

Issue was resolved
Comments (0)
 
History (1)
 
Links
 
Issue has no comments