2 * Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.akraino.validation.ui.entity;
18 import java.io.Serializable;
20 import javax.persistence.Column;
21 import javax.persistence.Entity;
22 import javax.persistence.GeneratedValue;
23 import javax.persistence.GenerationType;
24 import javax.persistence.Id;
25 import javax.persistence.SequenceGenerator;
26 import javax.persistence.Table;
28 import org.akraino.validation.ui.data.Lab;
31 @Table(name = "akraino.timeslot")
32 public class Timeslot implements Serializable {
37 private static final long serialVersionUID = 1L;
40 @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "timeslot_id_generator")
41 @SequenceGenerator(name = "timeslot_id_generator", sequenceName = "akraino.seq_timeslot", allocationSize = 1)
42 @Column(name = "timeslot_id")
43 private int timeslotId;
45 @Column(name = "start_date_time")
46 private String startDateTime;
48 @Column(name = "duration")
54 public void setTimeslotId(int timeslotId) {
55 this.timeslotId = timeslotId;
58 public int getTimeslotId() {
62 public void setStartDateTime(String startDateTime) {
63 this.startDateTime = startDateTime;
66 public String getStartDateTime() {
70 public void setDuration(int duration) {
71 this.duration = duration;
74 public int getDuration() {
78 public void setLab(Lab lab) {