mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-05-28 22:29:37 +00:00
SAMPLESPET-3
+ renamed META-INF/persistence.xml to META-INF/jpa-persistence.xml since JBoss will scan it automatically and complain about non-jta-resources declared.
This commit is contained in:
parent
6116d12475
commit
dd521eb88a
2 changed files with 4 additions and 1 deletions
|
@ -42,6 +42,7 @@
|
||||||
p:database="${jpa.database}" p:showSql="${jpa.showSql}"/>
|
p:database="${jpa.database}" p:showSql="${jpa.showSql}"/>
|
||||||
-->
|
-->
|
||||||
</property>
|
</property>
|
||||||
|
<property name="persistenceXmlLocation" value="classpath:META-INF/jpa-persistence.xml"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- Transaction manager for a single JPA EntityManagerFactory (alternative to JTA) -->
|
<!-- Transaction manager for a single JPA EntityManagerFactory (alternative to JTA) -->
|
||||||
|
@ -62,8 +63,10 @@
|
||||||
<!--
|
<!--
|
||||||
Instruct Spring to perform declarative transaction management
|
Instruct Spring to perform declarative transaction management
|
||||||
automatically on annotated classes.
|
automatically on annotated classes.
|
||||||
|
|
||||||
|
for mode="aspectj"/ see SPR-6392
|
||||||
-->
|
-->
|
||||||
<tx:annotation-driven mode="aspectj"/>
|
<tx:annotation-driven/>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Simply defining this bean will cause requests to owner names to be saved.
|
Simply defining this bean will cause requests to owner names to be saved.
|
||||||
|
|
Loading…
Reference in a new issue