<persistence-unit name="mainPU" transaction-type="RESOURCE_LOCAL">
<class>foo.bar.Entity1</class>
<class>foo.bar.Entity2</class>
<class>foo.bar.Entity3</class>
<class>foo.bar.Entity4</class>
<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
<validation-mode>NONE</validation-mode>
</persistence-unit>
<bean id="mainEmf" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="persistenceXmlLocation" value="classpath:config/persistence.xml" />
<property name="persistenceUnitName" value="mainPU"/>
<property name="persistenceProviderClass" value="org.eclipse.persistence.jpa.PersistenceProvider" />
<property name="jpaProperties">
<props>
<prop key="javax.persistence.jdbc.driver">net.sourceforge.jtds.jdbc.Driver</prop>
<prop key="javax.persistence.jdbc.url">jdbc:jtds:sybase://someURL</prop>
<prop key="javax.persistence.jdbc.user">xxxx</prop>
<prop key="javax.persistence.jdbc.password">xxxx</prop>
<prop key="eclipselink.weaving">false</prop>
</props>
</property>
</bean>
]]>