Mybatis and invalid types
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