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.

Are Postgresql enum types supported by dbunit?

0
Posted

Are Postgresql enum types supported by dbunit?

0

There is limited support for postgresql enums because only reading and writing strings is supported since dbunit 2.4.6. To do so you have to override the method “isEnumType” in the PostgresqlDataTypeFactory like this: PostgresqlDataTypeFactory factory = new PostgresqlDataTypeFactory(){ public boolean isEnumType(String sqlTypeName) { if(sqlTypeName.

Related Questions

What is your question?

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