Mantis - Resin
Viewing Issue Advanced Details
1063 major always 04-20-06 04:48 09-01-06 10:27
keith  
 
normal  
closed 3.0.18  
fixed  
none    
none 3.1.0  
0001063: EJB3 QL support incomplete, no support for setting parameters on queries
Substitution of parameters is not in 3.0.18

Sample code:

queryString = "SELECT o FROM Audit o WHERE o.client = 'alice' AND (o.time > :mytime )"
Query query = em.createQuery(queryString);
query.setParameter("mytime", time, TemporalType.TIME);

audits = (List<Audit>) query.listResults();

Generates a stack trace. looking at the src its clear this is not complete yet.

resin-3.0.18/modules/resin/src/com/caucho/amber/ejb3/QueryImpl.java

  /**
   * Sets a date parameter.
   */
  public Query setParameter(String name, Date value, TemporalType type)
  {
    return this;
  }

When is this expected?

Notes
(0001496)
westrupp   
09-01-06 10:27   
Implemented and tested (jpa/10e8). (Rodrigo Westrupp)