[hibernate-issues] [Hibernate-JIRA] Created: (HHH-4478) Query by example does not include id fields
Ken Egervari (JIRA)
noreply at atlassian.com
Tue Oct 6 19:20:56 EDT 2009
Query by example does not include id fields
-------------------------------------------
Key: HHH-4478
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4478
Project: Hibernate Core
Issue Type: Bug
Components: query-criteria
Affects Versions: 3.3.2
Environment: same in 3.3.2 and 3.5.0-beta1
Reporter: Ken Egervari
Priority: Blocker
Unfortunately, QbE does not use id fields. If no other fields are unique on the entitys were are querying for, and we must use an id, then the QbE approach is broke and doesn't work :(
For example, I have objects A which contains B... and B contains C. I want to get all the A's that where A.b.c.id = 'some value'. This is not possible using QbE.
Maybe that is the intent by design, so I dunno if I should classify this as a bug... but as it stands, I cannot use QbE in my project.
If there is a design reason for this, perhaps giving us the option to enable id fields (or to be consistent, disable them like the rest of the options indicate) would make more sense.
Thanks
--
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list