ajout du construteur
This commit is contained in:
@@ -29,6 +29,18 @@ public class Criterion {
|
|||||||
@JoinColumn(name="conference_id",nullable=false)
|
@JoinColumn(name="conference_id",nullable=false)
|
||||||
private Conference conference;
|
private Conference conference;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public Criterion(Integer id, String name, Integer min_rating,
|
||||||
|
Integer max_rating, Conference conference) {
|
||||||
|
super();
|
||||||
|
this.id = id;
|
||||||
|
this.name = name;
|
||||||
|
this.min_rating = min_rating;
|
||||||
|
this.max_rating = max_rating;
|
||||||
|
this.conference = conference;
|
||||||
|
}
|
||||||
|
|
||||||
@ManyToOne(targetEntity=Conference.class)
|
@ManyToOne(targetEntity=Conference.class)
|
||||||
@JoinColumn(name="conference_id",nullable=false)
|
@JoinColumn(name="conference_id",nullable=false)
|
||||||
public Conference getConference(){
|
public Conference getConference(){
|
||||||
|
|||||||
Reference in New Issue
Block a user