if Entity has more then one constructors, you should add @PersistenceConstructor to annotated one, otherwise ResultMap will not add any constructor. if Entity only has one constructor with one or more parameters, ResultMap will add this constructor.