This commit is contained in:
@@ -1,69 +0,0 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.yacos.core.evaluation;
|
||||
|
||||
import javax.persistence.ManyToOne;
|
||||
|
||||
import org.yacos.core.conferences.Conference;
|
||||
|
||||
/**
|
||||
* @author christiancorsano
|
||||
*
|
||||
*/
|
||||
public class Criterion {
|
||||
private String name;
|
||||
private Integer min;
|
||||
private Integer max;
|
||||
|
||||
@ManyToOne(targetEntity=Conference.class)
|
||||
private Conference conference;
|
||||
|
||||
@ManyToOne(targetEntity=Conference.class)
|
||||
public Conference getConference(){
|
||||
return conference;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the name of this criterion
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param name the name of this criterion
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the minimum value for this criterion
|
||||
*/
|
||||
public Integer getMin() {
|
||||
return min;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param min the minimum value for this criterion
|
||||
*/
|
||||
public void setMin(Integer min) {
|
||||
this.min = min;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the maximum value for this criterion
|
||||
*/
|
||||
public Integer getMax() {
|
||||
return max;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param max the maximum value for this criterion
|
||||
*/
|
||||
public void setMax(Integer max) {
|
||||
this.max = max;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.yacos.core.evaluation;
|
||||
|
||||
/**
|
||||
* @author christiancorsano
|
||||
*
|
||||
*/
|
||||
public class EvaluationManager implements IEvaluationManager {
|
||||
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.yacos.core.evaluation;
|
||||
|
||||
/**
|
||||
* @author christiancorsano
|
||||
*
|
||||
*/
|
||||
public interface IEvaluationManager {
|
||||
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.yacos.core.evaluation;
|
||||
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
|
||||
/**
|
||||
* @author christiancorsano
|
||||
*
|
||||
*/
|
||||
public class Rating {
|
||||
private Integer value;
|
||||
@ManyToOne(targetEntity=Criterion.class)
|
||||
@JoinColumn(name="criterion_id",nullable=false)
|
||||
private Criterion criterion;
|
||||
@ManyToOne(targetEntity=Report.class)
|
||||
@JoinColumn(name="report_id",nullable=false)
|
||||
private Report report;
|
||||
}
|
||||
@@ -1,90 +0,0 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.yacos.core.evaluation;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.OneToMany;
|
||||
|
||||
import org.yacos.core.article.Article;
|
||||
import org.yacos.core.users.User;
|
||||
|
||||
/**
|
||||
* @author christiancorsano
|
||||
*
|
||||
*/
|
||||
public class Report {
|
||||
private String commentPCMember;
|
||||
private String commentAuthor;
|
||||
@OneToMany(targetEntity=Rating.class,mappedBy="report")
|
||||
private ArrayList<Rating> ratings;
|
||||
@ManyToOne(targetEntity=User.class)
|
||||
@JoinColumn(name="referee_id",nullable=false)
|
||||
private User referee;
|
||||
@ManyToOne(targetEntity=Article.class)
|
||||
@JoinColumn(name="article_id",nullable=false)
|
||||
private Article article;
|
||||
/**
|
||||
* @return the commentPCMember
|
||||
*/
|
||||
public String getCommentPCMember() {
|
||||
return commentPCMember;
|
||||
}
|
||||
/**
|
||||
* @param commentPCMember the commentPCMember to set
|
||||
*/
|
||||
public void setCommentPCMember(String commentPCMember) {
|
||||
this.commentPCMember = commentPCMember;
|
||||
}
|
||||
/**
|
||||
* @return the commentAuthor
|
||||
*/
|
||||
public String getCommentAuthor() {
|
||||
return commentAuthor;
|
||||
}
|
||||
/**
|
||||
* @param commentAuthor the commentAuthor to set
|
||||
*/
|
||||
public void setCommentAuthor(String commentAuthor) {
|
||||
this.commentAuthor = commentAuthor;
|
||||
}
|
||||
/**
|
||||
* @return the referee
|
||||
*/
|
||||
@ManyToOne(targetEntity=User.class)
|
||||
@JoinColumn(name="referee_id",nullable=false)
|
||||
public User getReferee() {
|
||||
return referee;
|
||||
}
|
||||
/**
|
||||
* @param referee the referee to set
|
||||
*/
|
||||
@ManyToOne(targetEntity=User.class)
|
||||
@JoinColumn(name="referee_id",nullable=false)
|
||||
public void setReferee(User referee) {
|
||||
this.referee = referee;
|
||||
}
|
||||
/**
|
||||
* @return the article
|
||||
*/
|
||||
@ManyToOne(targetEntity=Article.class)
|
||||
@JoinColumn(name="article_id",nullable=false)
|
||||
public Article getArticle() {
|
||||
return article;
|
||||
}
|
||||
/**
|
||||
* @param article the article to set
|
||||
*/
|
||||
@ManyToOne(targetEntity=Article.class)
|
||||
@JoinColumn(name="article_id",nullable=false)
|
||||
public void setArticle(Article article) {
|
||||
this.article = article;
|
||||
}
|
||||
|
||||
public void addRating(Rating rating){
|
||||
ratings.add(rating);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user