Can not set java.lang.Integer field to java.lang.Integer

前端 未结 4 2997
陌清茗
陌清茗 2021-01-04 06:46

User declaration:

@Entity
public class User {
    @Id
    @GeneratedValue
    private Integer id;
    ....

Pattern declaration:

<         


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-04 07:26

    i think maybe your annotation should be

    @ManyToOne(TargetEntity=....class)

提交回复
热议问题