[jboss-user] [EJB 3.0] - Re: problem with EJBQL queries in JBoss 4.2.0 GA

hispeedsurfer do-not-reply at jboss.com
Tue Jun 19 10:32:30 EDT 2007


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



More information about the jboss-user mailing list