Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I use DbUnit with database views?

database dbunit
0
Posted

Can I use DbUnit with database views?

0

Yes. By default DbUnit is configured to only recognize normal tables. Modify the table type property to work with other table types. For example, use {“TABLE”, “VIEW”} for views. Be aware that REFRESH, DELETE and UPDATE operations are not compatible with tables without primary keys. They are not usable with views without overriding primary keys detection. CLEAN_INSERT, INSERT and DELETE_ALL operations are compatible with views.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.