@Id @GeneratedValue (generator="increment") @GenericGenerator (name="increment", strategy = "increment") @Column(name="id") public Long getId() { return id; } @Column(name="name") public String getName(){ return name; } @Column(name="age") public Long getAge(){ return age; } public void setId(Long i){ id = i; } public void setName(String s){ name = s; } public void setAge(Long l){ age = l; } }
@Id @GeneratedValue (generator="increment") @GenericGenerator (name="increment", strategy = "increment") @Column(name="id") public Long getId() { return id; } @Column(name="name") public String getName(){ return name; } @Column(name="age") public Long getAge(){ return age; } public void setId(Long i){ id = i; } public void setName(String s){ name = s; } public void setAge(Long l){ age = l; } }