java.lang.IllegalArgumentException: Not a managed type
Maybe Person
needs the Entity
annotation since you are using JPA.
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
@DynamicUpdate
public class Person {
private String id;
private String name;
}
You need to add @Entity
in your model/POJO class as below,
@Entity
public class Person {
//your model goes here
}