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
9 lines
365 B
Plaintext
9 lines
365 B
Plaintext
# One @Primary DataSource and nothing else: it starts, and it writes to the wrong database
|
|
|
|
application started: yes
|
|
EntityManagerFactory beans: [entityManagerFactory]
|
|
customers database tables: [CUSTOMER, PURCHASE_ORDER]
|
|
orders database tables: []
|
|
rows in the customers database: customer=1 purchase_order=1
|
|
hibernate.hbm2ddl.auto on that factory: create-drop
|