Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
1.4.0
-
None
-
None
Description
Scenario
Given a transactional repository
@Repository @Dependent @Transactional public abstract class CustomerDao extends AbstractEntityRepository<Customer, Long>
I'd like to reduce the number of annotations by using a stereotype.
@Stereotype @Dependent @Transactional @Inherited @Target({ TYPE }) @Retention(RUNTIME) @Documented public @interface Dao { }
so that my repository can be simplified to
@Repository @Dao public abstract class CustomerDao extends AbstractEntityRepository<Customer, Long>
Expected Behaviour
The @Dao @Repository works just like the original version.
Actual Behaviour
There is a TransactionRequiredException when calling the save() method. The interceptor binding on the stereotype has no effect.