The same exception with my quer. Runs on jboss-4.0.5.GA but not on 
jboss-4.2.0.GA

 error
 java.lang.IllegalArgumentException: org.hibernate.QueryException: illegal 
attempt to dereference collection 
[{synthetic-alias}messmittel0_.messmitteltyp_idmessmitteltyp.funktionen] with 
element property reference [id] [select me.id from 
de.bosch.ccecp.mmd.model.Messmittelexemplar me where 
messmitteltyp.funktionen.id=1]

in 

  |                     try{
  |                             l = em.createQuery("select me.id from 
Messmittelexemplar as me where messmitteltyp.funktionen.id=" + 
me.getId()).getResultList();
  |                             for (Object o : l){
  |                                     ids += "," + o;
  |                             }
  |                     }catch(Exception e){
  |                             e.printStackTrace();
  |                     }
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055658#4055658

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055658
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to