3 Replies Latest reply on Jun 21, 2007 10:59 AM by wolfc

    problem with EJBQL queries in JBoss 4.2.0 GA

    triathlon98

      We were using the same queries in CR1, but with GA we get errors. Error messages like

      2007-05-14 16:34:25,285 ERROR [org.hibernate.impl.SessionFactoryImpl] Error in named query: Weight.BlockedWeights
      org.hibernate.QueryException: illegal attempt to dereference collection [dmweightbe0_.UNID_UOID.statusCause] with element property reference [reference] [SELECT o FROM org.ictrace.server.pm.DMWeightBean o WHERE ( o.weightTime >= :weightTime ) AND ( o.declaration.species = :species ) AND ( o.statusCause.reference = :reference ) ]
      


      The UNID_UOID referenced is the primary key for the table.
      Is there a way to revert to the old behaviour?

      Thanks for the help,
      Joachim