Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Date;
- import javax.persistence.Column;
- import javax.persistence.Entity;
- import javax.persistence.GeneratedValue;
- import javax.persistence.Id;
- import net.arnx.jsonic.JSON;
- import org.hibernate.annotations.Table;
- @Entity(name = "temp")
- @Table(appliesTo = "temp")
- public class Temp {
- @Id
- @GeneratedValue
- private Long id;
- @Column(name = "student_id")
- private Long studentId;
- @Column(name = "current")
- private Boolean current;
- @Column(name = "closed_at")
- private Date closedAt;
- /**
- * @return the id
- */
- public Long getId() {
- return id;
- }
- /**
- * @param id the id to set
- */
- public void setId(Long id) {
- this.id = id;
- }
- /**
- * @return the studentId
- */
- public Long getStudentId() {
- return studentId;
- }
- /**
- * @param studentId the studentId to set
- */
- public void setStudentId(Long studentId) {
- this.studentId = studentId;
- }
- /**
- * @return the current
- */
- public Boolean getCurrent() {
- return current;
- }
- /**
- * @param current the current to set
- */
- public void setCurrent(Boolean current) {
- this.current = current;
- }
- /**
- * @return the closedAt
- */
- public Date getClosedAt() {
- return closedAt;
- }
- /**
- * @param closedAt the closedAt to set
- */
- public void setClosedAt(Date closedAt) {
- this.closedAt = closedAt;
- }
- @Override
- public String toString() {
- return JSON.encode(this);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement