Using @Transactional tag on my JUnit test causing data cannot be seen in h2 database

26 views
Skip to first unread message

Karthik Achanta

unread,
Jul 1, 2019, 10:27:14 AM7/1/19
to H2 Database
Hello Everyone, 

I am using SpringBoot DbUnit to load data into h2 database using XML files those have datasets in them. When I don't use @Transactional annotation on my test, I could see data being inserted. But, when I use @Transactional annotation, I dont see any data ( but can see tables ) inside h2 database. Does anyone have idea about whats going on here ? I understand I didn't add any code because everything is happening around @Transactional annotation.
Reply all
Reply to author
Forward
0 new messages