import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity(name = "t_fish_food") //Name of the entity public class JPAFish implements Serializable { @Id //signifies the primary key @Column(name = "id", nullable = false) @GeneratedValue(strategy = GenerationType.AUTO) private int id; @Column(name = "name", length = 128) private String name; @Column(name = "wine", length = 55) private String wine; @Column(name = "taste") private Integer tastiness; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getWine() { return wine; } public void setWine(String wine) { this.wine = wine; } public Integer getTastiness() { return tastiness; } public void setTastiness(Integer tastiness) { this.tastiness = tastiness; } }