I am new to Spring.
I have a EntityManagerFactory defined in applicationContext.xml with these defined parameters-
- p:packagesToScan
- p:dataSource-ref
- p:jpaPropertyMap
- p:jpaVendorAdapter-ref
- p:persistenceUnitName
I want to apply a project level query timeout in xml using javax.persistence.query.timeout or org.hibernate.timeout as explained in this link How to specify @lock timeout in spring data jpa query?
Note: I don't have any code which initializes any entity manager explicitly but I can see entity managers getting created in logs. Also I don't have the persistence.xml file