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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.