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

Key: IDEADEV-22572
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Peter Gromov
Reporter: Stephen Friedrich
Votes: 0
Watchers: 1
Operations

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

Wrong warning on JPA QL: "Cannot mix collection and single variables"

Created: 10 Oct 07 14:39   Updated: 06 Dec 07 18:52
Component/s: J2EE.EJB3
Fix Version/s: Selena 7.0.2

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: None
Image Attachments:

1. mix.png
(8 kb)

Build: 7,330
Fixed in build: 7,506


 Description  « Hide
This query is working fine, but Idea complains that it "Cannot mix collection and single variables":
String q = "select scoreEntry.department.id, scoreEntry.department.name, scoreEntry.yearMonth, sum(scoreEntry.score) " +
                   "from ScoreEntry scoreEntry " +
                   "where scoreEntry.yearMonth >= :startMonth and scoreEntry.yearMonth <= :endMonth " +
                   "group by scoreEntry.department.id, scoreEntry.department.name, scoreEntry.yearMonth";


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