Working setup plus one small application per way of getting it wrong (no @Primary, @Primary only, url vs jdbc-url, wrong repository package, Flyway auto-configuration), plain vs named @Transactional, and ChainedTransactionManager with a failing commit. Transcripts are written by the tests. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Uu7q8vPeREyT4218EJPzz1
7 lines
301 B
Plaintext
7 lines
301 B
Plaintext
# javac on a class carrying two @EnableJpaRepositories (scripts/facts/RepeatedEnable.java)
|
|
|
|
RepeatedEnable.java:7: error: EnableJpaRepositories is not a repeatable annotation interface
|
|
@EnableJpaRepositories(basePackages = "a.orders", entityManagerFactoryRef = "ordersEntityManagerFactory")
|
|
^
|
|
1 error
|