No. they are in a separate xml. and in my persistence.xml i have the query
file mapped.  here's what it looks like:

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";>
  <persistence-unit name="xubish-ejb" transaction-type="RESOURCE_LOCAL">
  <mapping-file>META-INF/user.namedqueries.xml</mapping-file>
    <properties>

 omitted for brevity  

    </properties>
  </persistence-unit>
</persistence>


--
View this message in context: 
http://openjpa.208410.n2.nabble.com/createQuery-String-qlString-Class-T-resultClass-or-createNamedQuery-usage-tp6338912p6339124.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to