This is our xml config. Which also by the way, I have a property placeholder for .properties file that also doesn't work, when it should. So I have been putting the values in the .properties directly into the xml, but changed it back to hide those values for now.
Code:
<jdbc:embedded-database id="dataSource">
<jdbc:script location="classpath:sqlscripts/create-account-tables.sql"/>
<jdbc:script location="classpath:sqlscripts/create-account-data.sql"/>
</jdbc:embedded-database>
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="jpaVendorAdapter" ref="jpaAdapter"/>
<property name="loadTimeWeaver">
<bean class="org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver"/>
</property>
<property name="persistenceUnitName" value="testing"/>
<property name="packagesToScan">
<list>
<value>com.hdpoker.account.domain</value>
</list>
</property>
</bean>
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
<property name="entityManagerFactory" ref="entityManagerFactory"/>
</bean>
<bean id="jpaAdapter" class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="database" value="HSQL"/>
<property name="showSql" value="true"/>
<property name="generateDdl" value="false"/>
</bean>
<context:property-placeholder location="classpath:META-INF/spring/neo4j.properties"/>
<neo4j:config storeDirectory="${neo4j.location}" entityManagerFactory="entityManagerFactory"/>
<neo4j:repositories base-package="${neo4j.basepackage}"/>
As you can see at the end I use the entityManagerFactory attribute of the neo4j:config tag. I believe that in the lifecyle of Spring that tag and attribute then tries to call a method setEntityManagerFactory on the Configuration class, and there is no such method in current version of SDN. It was in the 1.0.x versions.
Thanks
Mark