openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebarry <seanjamesba...@yahoo.co.uk>
Subject Re: [org.apache.openjpa.persistence.ArgumentException - An error occurred while parsing the query filter "select x from Person x". Error message: The name "Person" is not a recognized entity or identifier. Perhaps you meant Person, which is a close match. Known entity names: [Person]]
Date Wed, 12 Feb 2014 18:52:06 GMT
Hi Rick,

Here's the contents of my persistence.xml

<persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    version="1.0">

    <persistence-unit name="person2" transaction-type="JTA">
       
<jta-data-source>osgi:service/javax.sql.XADataSource/(osgi.jndi.service.name=jdbc/derbydsxa)</jta-data-source>
        <class>net.lr.tutorial.karaf.camel.jpa2jms.model.Person</class>
        <exclude-unlisted-classes>true</exclude-unlisted-classes>
       
        <properties>
            
            <property name="openjpa.jdbc.SynchronizeMappings"
value="buildSchema"/>
            <property name="openjpa.jdbc.DBDictionary" value="derby"/>
        </properties>
    </persistence-unit>

</persistence>

Regards,

Sean



--
View this message in context: http://openjpa.208410.n2.nabble.com/org-apache-openjpa-persistence-ArgumentException-An-error-occurred-while-parsing-the-query-filter-se-tp7585976p7585979.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message