Mantis - Resin
Viewing Issue Advanced Details
1215 minor always 06-25-06 18:58 08-31-06 20:05
fbertra  
 
normal  
closed 3.0.19  
fixed  
none    
none 3.1.0  
0001215: Amber: implement the "select new" clause
This EJB-QL query

"select new cl.fbd.SectorImp (s.sector, count(s)) from SuscripcionBean s group by s.sector"

generate the following error:

com.caucho.amber.AmberRuntimeException: 'new' is an unknown field of 'SuscripcionBean'.
    at com.caucho.amber.query.AbstractPathExpr.createField(AbstractPathExpr.java:52)
    at com.caucho.amber.query.QueryParser.parseSimpleTerm(QueryParser.java)

Notes
(0001493)
westrupp   
08-31-06 20:05   
Implemented and tested (jpa/11a4). (Rodrigo Westrupp)