Created
March 24, 2012 14:50
-
-
Save Eugeny/2183809 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package fksis.domain.entities; | |
| import javax.persistence.*; | |
| @Entity | |
| @Table(name = "CLASS", schema = "MAIN") | |
| public class ScheduledClass implements java.io.Serializable { | |
| private static final long serialVersionUID = 1L; | |
| private long id; | |
| private String name; | |
| private String weeks; | |
| private String subgroups; | |
| private int day; | |
| private int timeSlot; | |
| private String group; | |
| private String room; | |
| private String teacher; | |
| private String type; | |
| @Id | |
| @GeneratedValue(strategy = GenerationType.AUTO) | |
| @Column(name = "ID", unique = true, nullable = false) | |
| public long getId() { | |
| return this.id; | |
| } | |
| public void setId(long id) { | |
| this.id = id; | |
| } | |
| @Column(name = "NAME", nullable = false, length = 30) | |
| public String getName() { | |
| return name; | |
| } | |
| public void setName(String name) { | |
| this.name = name; | |
| } | |
| @Column(name = "WEEKS", nullable = false, length = 4) | |
| public String getWeeks() { | |
| return weeks; | |
| } | |
| public void setWeeks(String weeks) { | |
| this.weeks = weeks; | |
| } | |
| @Column(name = "SUBGROUPS", nullable = false, length = 4) | |
| public String getSubgroups() { | |
| return subgroups; | |
| } | |
| public void setSubgroups(String subgroups) { | |
| this.subgroups = subgroups; | |
| } | |
| @Column(name = "DAY") | |
| public int getDay() { | |
| return day; | |
| } | |
| public void setDay(int day) { | |
| this.day = day; | |
| } | |
| @Column(name = "TIMESLOT") | |
| public int getTimeSlot() { | |
| return timeSlot; | |
| } | |
| public void setTimeSlot(int timeSlot) { | |
| this.timeSlot = timeSlot; | |
| } | |
| @Column(name = "GROUP", nullable = false, length = 6) | |
| public String getGroup() { | |
| return group; | |
| } | |
| public void setGroup(String group) { | |
| this.group = group; | |
| } | |
| @Column(name = "ROOM", nullable = true, length = 10) | |
| public String getRoom() { | |
| return room; | |
| } | |
| public void setRoom(String room) { | |
| this.room = room; | |
| } | |
| @Column(name = "TEACHER", nullable = true, length = 20) | |
| public String getTeacher() { | |
| return teacher; | |
| } | |
| public void setTeacher(String teacher) { | |
| this.teacher = teacher; | |
| } | |
| @Column(name = "TYPE", nullable = true, length = 30) | |
| public String getType() { | |
| return type; | |
| } | |
| public void setType(String type) { | |
| this.type = type; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment