You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Tobias Trelle <to...@codecentric.de> on 2011/10/17 15:06:34 UTC
Re: Named Queries
rjdevet wrote:
>
> In OpenJPA, merchHier.orm.xml file is not recognized, tried few options of
> renaming the file orm.xml and other suggested options, but nothing worked.
>
The JPA spec "suggests" to put the O/R mapping definition into
META-INF/orm.xml
somewhere in the classpath.
rjdevet wrote:
>
> Questions:
> Are plain named queries, (Like in above example) supported by openJPA?
>
Yes, you can have both named queries and named native queries in one orm
file:
HTH,
Tobias
--
View this message in context: http://openjpa.208410.n2.nabble.com/Named-Queries-tp6887507p6900460.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.