4 Replies Latest reply on Feb 19, 2009 12:10 PM by Eleas

    Seam 2.1.1 EntityQuery problem after upgrade

    Eleas Newbie


      In my project I have a lot of defined in components.xml entity queries like this:

      select object(a) from Article a where a.author = #{currentUser}

      (CurrentUser is entity.)

      In 2.0.2 such queries work correctly. But in 2.1.1 this doesn't work because instead of entity inserted result of toString() of my entity. So I should rewrite all my queries in such way:

      select object(a) from Article a where a.author.userId=#{currentUser.userId}

      Is there some more simple way to have the required back compatibility in EntityQuery?