Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You need to tune some settings in <code>persistence.xml</code>, add:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&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_1_0.xsd" version="1.0"&gt; &lt;persistence-unit name="persistenceUnit"&gt; &lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt; &lt;class&gt;my.foo.bar&lt;/class&gt; &lt;exclude-unlisted-classes&gt;true&lt;/exclude-unlisted-classes&gt; &lt;properties&gt; &lt;property name="hibernate.dialect" value="dialect.ImprovedH2Dialect"/&gt; &lt;property name="hibernate.default_schema" value="ags" /&gt; &lt;property name="hibernate.show_sql" value="true"/&gt; &lt;!-- value="create" to build a new database on each run; value="update" to modify an existing database; value="create-drop" means the same as "create" but also drops tables when Hibernate closes; value="validate" makes no changes to the database --&gt; &lt;property name="hibernate.hbm2ddl.auto" value="create"/&gt; &lt;property name="hibernate.ejb.naming_strategy" value="org.hibernate.cfg.ImprovedNamingStrategy"/&gt; &lt;property name="hibernate.connection.charSet" value="UTF-8"/&gt; &lt;/properties&gt; &lt;/persistence-unit&gt; </code></pre> <p>and specify all entity classes.</p> <p>see <a href="http://docs.jboss.org/hibernate/entitymanager/3.6/reference/en/html/configuration.html" rel="nofollow">http://docs.jboss.org/hibernate/entitymanager/3.6/reference/en/html/configuration.html</a></p>
 

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