Spring EclipseLink相当于openjpa.properties?

Spring EclipseLink相当于openjpa.properties?,spring,jpa,eclipselink,Spring,Jpa,Eclipselink,EclipseLink是否有与openjpa.properties等价的东西,让我指定persistence.xml的位置 调整类路径以查找persistence.xml是EclipseLink的唯一选项吗 FWIW这是弹簧4。应用 TIA.基于Spring的应用程序的答案是 <tx:annotation-driven mode="aspectj" transaction-manager="transactionManager" /> <bean class="

EclipseLink是否有与openjpa.properties等价的东西,让我指定persistence.xml的位置

调整类路径以查找persistence.xml是EclipseLink的唯一选项吗

FWIW这是弹簧4。应用


TIA.

基于Spring的应用程序的答案是

    <tx:annotation-driven mode="aspectj" transaction-manager="transactionManager" />
    <bean class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" id="entityManagerFactory">
            <property name="persistenceUnitName" value="persistenceUnit" />
            <property name="persistenceXmlLocation" value="file:<Path to your persistence.xml>" />
            <property name="dataSource" ref="dataSource" />
    </bean>

该问题可能与下面的问题重复,但该问题会导致正确答案。