3. JPA Configuration

Excerpt from META-INF/persistence.xml

                
<?xml version="1.0" encoding="UTF-8"?>
<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">

    <persistence-unit name="simple-jpa-template" transaction-type="RESOURCE_LOCAL">
        <class>org.springbyexample.orm.jpa.bean.Person</class>
        <class>org.springbyexample.orm.jpa.bean.Address</class>
        
        <exclude-unlisted-classes/>
    </persistence-unit>

    ...
    
</persistence>