@Transaction Around Test
Hi,
My fingers were tingling at the start of Thorben Janssen’s session “The Big Java Persistence Q&A”.
The first question was roughly:
“In the previous talk (something with JPA), it was said that one should annotate every test with
@Transactional
. This will automatically roll back the data after the test. We’ve had a discussion and can’t agree. What’s your recommendation?”
Thorben’s answer made me nervous. He countered with a question of his own, also paraphrased: