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
403 B
Plaintext
7 lines
403 B
Plaintext
# A hand-built EntityManagerFactory that sets no Hibernate properties of its own
|
|
|
|
hibernate.physical_naming_strategy = org.hibernate.boot.model.naming.PhysicalNamingStrategySnakeCaseImpl
|
|
hibernate.implicit_naming_strategy = org.springframework.boot.hibernate.SpringImplicitNamingStrategy
|
|
hibernate.hbm2ddl.auto = null
|
|
saved a Customer whose field is createdAt into a column created_at: id=1
|