id自增

     @GeneratedValue(strategy= GenerationType.IDENTITY)

    @Id
    private Integer id;

数据库别名

    @Column(name = "department_name")
    private String name;

weijie
164 声望7 粉丝