This content has been marked as final.
Show 3 replies
-
1. Re: problem with EJBQL queries in JBoss 4.2.0 GA
hispeedsurfer Jun 19, 2007 10:32 AM (in response to triathlon98)The same exception with my quer. Runs on jboss-4.0.5.GA but not on jboss-4.2.0.GA
errorjava.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]
intry{ 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(); }
-
2. Re: problem with EJBQL queries in JBoss 4.2.0 GA
hispeedsurfer Jun 21, 2007 3:35 AM (in response to triathlon98)Hello,
Is there a known problem with "illegal attempt to dereference collection" exception?