<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">
  <persistence-unit name="fancyfoods">
    <jta-data-source>
      osgi:service/jdbc/xafancyfoodsdb
    </jta-data-source>
    <non-jta-data-source>
      osgi:service/jdbc/fancyfoodsdb
    </non-jta-data-source>
    <class>fancyfoods.persistence.CustomerImpl</class>
    <class>fancyfoods.persistence.FoodImpl</class>
    <exclude-unlisted-classes>true</exclude-unlisted-classes>
    <properties>
      <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)" />
    </properties>
  </persistence-unit>
</persistence>

<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">
  <persistence-unit name="fancyfoods">
    <jta-data-source>
      osgi:service/jdbc/xafancyfoodsdb
    </jta-data-source>
    <non-jta-data-source>
      osgi:service/jdbc/fancyfoodsdb
    </non-jta-data-source>
    <properties>
      <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)" />
    </properties>
  </persistence-unit>
</persistence>

Allow JPA to discover all entities.
Allow JPA to discover all entities.
