#orm
Posts
-
Digging into Spring's Source 19: ORM and R2DBC Integration — JPA Support and Reactive Transactions
How JPA's EntityManagerFactory becomes a bean, why the EntityManager you get from @PersistenceContext is safe to share between threads, how JdbcTemplate ends up on the same connection under JpaTransactionManager, and where a @Repository's exceptions get translated — all checked in the source. Then the reactive side, where there is no thread to hang a transaction on, and R2DBC transactions ride in the Reactor Context instead.