]
Gail Badner resolved HHH-5122.
------------------------------
Resolution: Rejected
The test case tries to project on a collection. This is not supported.
SQL generation bug in ProjectionList.toSqlString(...)
-----------------------------------------------------
Key: HHH-5122
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5122
Project: Hibernate Core
Issue Type: Bug
Components: query-criteria
Affects Versions: 3.5.1
Environment: mysql 5
Reporter: thogau
Assignee: Gail Badner
Attachments: criteria_problem.zip
line 76 of ProjectionList.java
<code>loc += getColumnAliases(loc, criteria, criteriaQuery, proj
).length;<code>
variable *loc* in never incremented and the consequence is the sql generated looks like :
<code>select distinct this_.id as *y0_*, this_.name as *y0_* from groupe this_
order by y0_ asc<code>
cheers,
--Thomas
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: