Skip to main content
Run any Skill in Manus
with one click

spring-jpa-testing

// @DataJpaTest requires TestEntityManager + flush()/clear() before assertions — without this, tests read from Hibernate L1 cache and pass falsely. Read before writing any JPA test. Triggers: @DataJpaTest, JpaRepository, TestEntityManager, @ServiceConnection, Testcontainers, @Modifying, Hibernate 6/7, @AutoConfigureTestDatabase, flush and clear in tests, @Transactional in tests, jakarta.persistence.EntityManager.

$ git log --oneline --stat
stars:43
forks:2
updated:April 8, 2026 at 03:26
File Explorer
5 files
SKILL.md
readonly