ratingboolean
git-svn-id: svn://svn.dsv.su.se/scipro/scipro/trunk@276 73ecded7-942e-4092-bab0-0e58ef0ee984
This commit is contained in:
parent
406b1db900
commit
445178a2cb
@ -33,6 +33,9 @@ public class Rating extends DomainObject{
|
||||
return id;
|
||||
}
|
||||
|
||||
// True equals uprate, false = downrate.
|
||||
boolean rating;
|
||||
|
||||
@ManyToOne
|
||||
private User user;
|
||||
|
||||
@ -44,5 +47,11 @@ public class Rating extends DomainObject{
|
||||
this.user = user;
|
||||
}
|
||||
|
||||
public void setRateUp(){
|
||||
rating = true;
|
||||
}
|
||||
|
||||
public void setRateDown(){
|
||||
rating = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user