1 package example; 2 3 import javax.persistence.*; 4 5 19 @Entity 20 @Table(name="amber_resin_xa_courses") 21 public class Course { 22 @Id 23 @Column(name="id") 24 @GeneratedValue 25 private int _id; 26 27 @Basic 28 @Column(name="course") 29 private String _course; 30 31 @Basic 32 @Column(name="teacher") 33 private String _teacher; 34 35 38 public int getId() 39 { 40 return _id; 41 } 42 43 public void setId(int id) 44 { 45 _id = id; 46 } 47 48 51 public String getCourse() 52 { 53 return _course; 54 } 55 56 59 public void setCourse(String course) 60 { 61 _course = course; 62 } 63 64 67 public String getTeacher() 68 { 69 return _teacher; 70 } 71 72 75 public void setTeacher(String teacher) 76 { 77 _teacher = teacher; 78 } 79 } 80 | Popular Tags |