Ticket #767 (closed defect: fixed)
[Hibernate] 'illegal attempt to dereference collection'
| Reported by: | jmoore | Owned by: | jmoore |
|---|---|---|---|
| Priority: | minor | Milestone: | 3.0-Beta2.2 |
| Component: | Queries | Version: | 3.0-M1 |
| Keywords: | iteration1 | Cc: | callan |
Description
This error message will arise starting with the Hibernate upgrade to 3.2.5.ga as outlined in the Hibernate migration guide. Queries of the form:
select p from Pixels p where p.planeInfo.id = :id"
will fail since planeInfo is a collection and has no "id" property. The proper query is:
select pi.pixels from PlaneInfo pi where pi.id = :id"
See: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2667
Change History
Note: See
TracTickets for help on using
tickets.
