blob: fadcc94a96762bcc0e8125f68eb2c1735d8ebd59 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License") + you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.openmeetings.app.persistence.beans.poll;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import org.openmeetings.app.persistence.beans.user.Users;
@Entity
@Table(name = "room_poll_answers")
public class RoomPollAnswers {
@OneToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "users_id")
private Users votedUser;
@Column(name = "answer")
private Boolean answer;
@Column(name = "pointList")
private Integer pointList;
@Column(name = "voteDate")
private Date voteDate;
@OneToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "room_poll_id")
private RoomPoll roomPoll;
/**
* @return the answer
*/
public Boolean getAnswer() {
return answer;
}
/**
* @param answer
* the answer to set
*/
public void setAnswer(Boolean answer) {
this.answer = answer;
}
/**
* @return the pointList
*/
public Integer getPointList() {
return pointList;
}
/**
* @param pointList
* the pointList to set
*/
public void setPointList(Integer pointList) {
this.pointList = pointList;
}
/**
* @return the voteDate
*/
public Date getVoteDate() {
return voteDate;
}
/**
* @param voteDate
* the voteDate to set
*/
public void setVoteDate(Date voteDate) {
this.voteDate = voteDate;
}
/**
* @return the votedClient
*/
public Users getVotedUser() {
return votedUser;
}
/**
* @param votedClient
* the votedClient to set
*/
public void setVotedUser(Users votedUser) {
this.votedUser = votedUser;
}
public RoomPoll getRoomPoll() {
return roomPoll;
}
public void setRoomPoll(RoomPoll roomPoll) {
this.roomPoll = roomPoll;
}
}