This content has been marked as final.
Show 2 replies
-
1. Re: Using filters in getResultlist()
nickarls Mar 8, 2008 10:09 PM (in response to pete007)something like
List<Item> items = entityManager.createQuery("from Item i where i.owner = #{identity.username}").getResultList();
(ok, parameter binding is probably more nice)
-
2. Re: Using filters in getResultlist()
pete007 Mar 8, 2008 10:54 PM (in response to pete007)Thank you, works great! (I added the where-clause to getEjbql() because noone is using the full list)