The following mapper configuration works fine (MyPojo has no other constructor)
class MyPojo { private Long id; private String name; // No constr