001/*
002 * Copyright 2006-2014 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016
017package org.kuali.rice.krad.test.conference;
018
019import org.kuali.rice.krad.data.jpa.PortableSequenceGenerator;
020
021import javax.persistence.CascadeType;
022import javax.persistence.Column;
023import javax.persistence.Entity;
024import javax.persistence.GeneratedValue;
025import javax.persistence.Id;
026import javax.persistence.OneToMany;
027import javax.persistence.Table;
028import java.util.ArrayList;
029import java.util.List;
030
031@Entity
032@Table(name = "KRTST_CONF_COORD_T")
033public class SessionCoordinator {
034
035    @Id
036    @Column(name = "ID")
037    @GeneratedValue(generator = "KRTST_CONF_COORD_S")
038    @PortableSequenceGenerator(name = "KRTST_CONF_COORD_S")
039    private Long id;
040
041    @Column(name = "NM")
042    private String name;
043
044    @OneToMany(cascade = CascadeType.ALL, mappedBy = "coordinator")
045    private List<ConferenceSession> coordinatedSessions = new ArrayList<ConferenceSession>();
046
047    @OneToMany(cascade = CascadeType.ALL, mappedBy = "altCoordinator1")
048    private List<ConferenceSession> altCoordinatedSessions1 = new ArrayList<ConferenceSession>();
049
050    @OneToMany(cascade = CascadeType.ALL, mappedBy = "altCoordinator2")
051    private List<ConferenceSession> altCoordinatedSessions2 = new ArrayList<ConferenceSession>();
052
053    public Long getId() {
054        return id;
055    }
056
057    public void setId(Long id) {
058        this.id = id;
059    }
060
061    public String getName() {
062        return name;
063    }
064
065    public void setName(String name) {
066        this.name = name;
067    }
068
069    public List<ConferenceSession> getCoordinatedSessions() {
070        return coordinatedSessions;
071    }
072
073    public void setCoordinatedSessions(List<ConferenceSession> coordinatedSessions) {
074        this.coordinatedSessions = coordinatedSessions;
075    }
076
077    public List<ConferenceSession> getAltCoordinatedSessions1() {
078        return altCoordinatedSessions1;
079    }
080
081    public void setAltCoordinatedSessions1(List<ConferenceSession> altCoordinatedSessions1) {
082        this.altCoordinatedSessions1 = altCoordinatedSessions1;
083    }
084
085    public List<ConferenceSession> getAltCoordinatedSessions2() {
086        return altCoordinatedSessions2;
087    }
088
089    public void setAltCoordinatedSessions2(List<ConferenceSession> altCoordinatedSessions2) {
090        this.altCoordinatedSessions2 = altCoordinatedSessions2;
091    }
092
093}