You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
None of the configuration annotations (@Configuration, @ComponentScan, @EnableTransactionManagement, @EnableCaching, @EnableXXXX) in Spring is @Inherited. So, to align with those annotations in Spring, @EnableJpaRepositories should not be @Inherited
Affects: 1.3.4
1 votes, 2 watchers
The text was updated successfully, but these errors were encountered:
I just discovered this issue while looking to see if anyone had hit the same problem as me with @EnableTransactionManagementnot being @Inherited.
To me it's a WTF, and instinctively I expect annotations to be @Inherited.
Even if someone is extending an @Configuration specifically in order to override an annotation, I'd expect this to work, ah, except there's no way to disabled it, hence perhaps it is sane, but needs documenting as such.
gregturn
changed the title
@EnableJpaRepositories should not be @Inherited [DATAJPA-394]
Align Spring Data JPA annotations with Spring Framework annotations
Jun 8, 2022
Xavier Dury opened DATAJPA-394 and commented
None of the configuration annotations (
@Configuration
,@ComponentScan
,@EnableTransactionManagement
,@EnableCaching
,@EnableXXXX
) in Spring is@Inherited
. So, to align with those annotations in Spring,@EnableJpaRepositories
should not be@Inherited
Affects: 1.3.4
1 votes, 2 watchers
The text was updated successfully, but these errors were encountered: