Mybatis and invalid types Mybatis and invalid types postgresql postgresql

Mybatis and invalid types


You need to have an empty constructor:

public Plugin() {}


Did you define the Person class as abstract?

This is not PostgreSQL or MyBatis issue in my opinion. The VM can't create instance of Person, but constructor args & types is correct.

Caused by: java.lang.InstantiationExceptionat sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)


Try removing the "abstract" and

public Plugin(int id, String name) {    this.id = id;    this.name = name;}

From the class