Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm using Derby in memory for testing and my configuration is very close to yours. </p> <p>Here is my <code>persistence.xml</code>:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;persistence 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_2_0.xsd" version="2.0"&gt; &lt;persistence-unit name="TestPu" transaction-type="RESOURCE_LOCAL"&gt; &lt;provider&gt;org.eclipse.persistence.jpa.PersistenceProvider&lt;/provider&gt; &lt;class&gt;com.acme.Foo&lt;/class&gt; &lt;class&gt;com.acme.Bar&lt;/class&gt; &lt;exclude-unlisted-classes&gt;true&lt;/exclude-unlisted-classes&gt; &lt;properties&gt; &lt;!-- Common properties --&gt; &lt;property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/&gt; &lt;property name="javax.persistence.jdbc.url" value="jdbc:derby:memory:test-jpa;create=true"/&gt; &lt;property name="javax.persistence.jdbc.user" value="APP"/&gt; &lt;property name="javax.persistence.jdbc.password" value="APP"/&gt; &lt;!-- EclipseLink specific properties --&gt; &lt;property name="eclipselink.target-database" value="Derby"/&gt; &lt;property name="eclipselink.ddl-generation" value="drop-and-create-tables"/&gt; &lt;property name="eclipselink.debug" value="ALL"/&gt; &lt;property name="eclipselink.weaving" value="static"/&gt; &lt;property name="eclipselink.logging.level" value="FINEST"/&gt; &lt;property name="eclipselink.logging.level.sql" value="FINEST"/&gt; &lt;property name="eclipselink.logging.level.cache" value="FINEST"/&gt; &lt;/properties&gt; &lt;/persistence-unit&gt; &lt;/persistence&gt; </code></pre> <p>Where <code>org.apache.derby:derby:jar:10.6.2.1</code> is on the classpath. </p> <p>Now two questions/suggestions:</p> <ul> <li>How do you know the database is persisted on disk?</li> <li>If it really does, make sure you're using the <code>persistence.xml</code> you think you are.</li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload