Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Fixed
Assignee
Peter Gromov
Subsystem
J2EE.EJB3
Affected versions
No Affected versions
Fixed in build
108.65  
  • Created by   Stephen Friedrich
    4 years ago (10 Oct 2007 16:15)
  • Updated by   root
    2 years ago (17 Jan 2010 20:54)
  • Jira: IDEADEV-22578
    (history, comments)
 
IDEA-41423 JPA QL: Idea get confused by new expression
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
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...

Issue was resolved
Comments (0)
 
History
 
Linked Issues (?)
 
Issue has no comments