This content has been marked as final.
Show 2 replies
-
1. Re: Duplicate query named: findAll when using @NamedQuery on
keeyes Jul 1, 2005 12:52 AM (in response to ronaldmathies)Yes, I think you can't use it.
There are two options for you.
1. Keep different names
2. Else use Entity.find.... and this will work
i.e., in your case it should be
Language.findAll
Reporter.findAll
Hope this helps -
2. Re: Duplicate query named: findAll when using @NamedQuery on
epbernard Jul 1, 2005 7:04 AM (in response to ronaldmathies)The spec implies it since em.createNamedQuery(String) doesn't take any context.