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

Key: IDEADEV-22578
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

JPA QL: Idea get confused by new expression

Created: 10 Oct 07 15:15   Updated: 06 Dec 07 18:50
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. new.png
(12 kb)

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


 Description  « Hide
This is working correctly, but Idea cannot resolve the constructor arguments:
String q = "select new com.lufthansatechnik.mscoreengine.homes.DepartmentScore(" +
                   "            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";

        List a = entityManager.createQuery(q)
                .setParameter("startMonth", startYearMonth)
                .setParameter("endMonth", endYearMonth)
                .getResultList();

There is a reason after all, that I changed the inspection level to "info", with all these issues in parsing JPA-QL...



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