It is one of the limitations of Springs AOP. Because the dao bean is in fact a proxy when it is created by spring, it means that calling a method from within the same class will not call the advice (which is the transaction). The same goes for any other pointcut
More Related Contents:
- Error creating bean with name ‘entityManagerFactory’ defined in class path resource : Invocation of init method failed
- Bypass GeneratedValue in Hibernate (merge data not in db?)
- How does the FetchMode work in Spring Data JPA
- How to fetch FetchType.LAZY associations with JPA and Hibernate in a Spring Controller
- No Dialect mapping for JDBC type: 1111
- How to set up default schema name in JPA configuration?
- Why does Hibernate disable INSERT batching when using an IDENTITY identifier generator
- Transaction marked as rollback only: How do I find the cause
- Spring data JPA and hibernate detached entity passed to persist on ManyToMany relationship
- Can I combine a @Query definition with a Specification in a Spring Data JPA repository method?
- When are connections returned to the connection pool with Spring JPA (Hibernate) Entity Manager?
- Could not commit JPA transaction: Transaction marked as rollbackOnly
- Change database schema during runtime based on logged in user
- Spring JpaRepository – Detach and Attach entity
- How to map sql native query result into DTO in spring jpa repository?
- Difference between save and saveAndFlush in Spring data jpa
- The onFlushDirty Hibernate Interceptor method is never called
- spring data jpa @query and pageable
- Hibernate, spring, JPS & isolation – custom isolation not supported
- Error creating bean with name ‘entityManagerFactory
- Spring, JPA, and Hibernate – how to increment a counter without concurrency issues
- Mapping JPA or Hibernate projection query to DTO (Data Transfer Object)
- java.lang.IllegalStateException: No transactional EntityManager available
- FetchMode join makes no difference for ManyToMany relations in spring JPA repositories
- TransactionRequiredException Executing an update/delete query
- How to find distinct rows with field in list using JPA and Spring?
- How to return a custom object from a Spring Data JPA GROUP BY query
- Hibernate, @SequenceGenerator and allocationSize
- Spring – Is it possible to use multiple transaction managers in the same application?
- Spring hibernate template when to use and why?