XML : Can a Spring JpaTransactionManager be assigned in Java code?

In my Spring XML I am passing a Properties object to a factory class that creates a LocalContainerEntityManagerFactoryBean. If I use a property value, say isTransactional==true, to create a JpaTransactionManager and assign it the EntityManagerFactory, will it work with @Transactional classes? Or does the JpaTransactionManager have to be declared in the Spring XML?

No comments:

Post a Comment