Github user jgallimore commented on a diff in the pull request:

    https://github.com/apache/tomee/pull/239#discussion_r239267154
  
    --- Diff: examples/mvc-cxf/src/main/resources/META-INF/persistence.xml ---
    @@ -0,0 +1,22 @@
    +<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    +<persistence xmlns="http://java.sun.com/xml/ns/persistence"; 
    +             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    +             version="2.0"
    +             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence 
    +             http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd";>
    +
    +    <persistence-unit name="mvc-demo" transaction-type="RESOURCE_LOCAL">
    +
    +      <non-jta-data-source>mvc-demo</non-jta-data-source>
    +
    +      <class>org.superbiz.model.Address</class>
    +      <class>org.superbiz.model.Person</class>
    +
    +      <properties>
    +          <property name="eclipselink.target-database" 
value="org.eclipse.persistence.platform.database.H2Platform"/>
    +          <property name="eclipselink.ddl-generation" 
value="create-tables"/>
    +          <property name="eclipselink.ddl-generation.output-mode" 
value="database"/>
    +      </properties>
    --- End diff --
    
    Can you try adding this:
    
    `<property name="openjpa.jdbc.SynchronizeMappings" 
value="buildSchema(ForeignKeys=true, Indexes=false, IgnoreErrors=true)"/>`
    
    That should enable schema generation on OpenJPA (Webprofile and Plus) as 
well as EclipseLink (Plume).


---

Reply via email to