<!--

    Copyright (c) 2012-2018 Red Hat, Inc.
    This program and the accompanying materials are made
    available under the terms of the Eclipse Public License 2.0
    which is available at https://www.eclipse.org/legal/epl-2.0/

    SPDX-License-Identifier: EPL-2.0

    Contributors:
      Red Hat, Inc. - initial API and implementation

-->
<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 persistence_1_0.xsd" version="1.0">
    <persistence-unit name="$unit$" transaction-type="RESOURCE_LOCAL">
        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
        $!
                Add entity classes as <class>fqn.MyEntity.class</class>
        !$
        $if(entity_classes)$
        $trunc(entity_classes) : {class | <class>$class$</class>
        }$        <class>$last(entity_classes)$</class>
        $endif$
        $!
                Add properties as <property name="propertyName" value="propertyValue"/>
        !$
        $if(properties)$
        <properties>
            $trunc(properties) : {prop | <property name="$prop$" value="$properties.(prop)$"/>
            }$            <property name="$last(properties)$" value="$properties.(last(properties))$"/>
        </properties>
        $endif$
    </persistence-unit>
</persistence>
