openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Trelle <tobias.tre...@codecentric.de>
Subject Re: Named Queries
Date Mon, 17 Oct 2011 13:06:34 GMT

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.

Mime
View raw message