added all messageboardclasses in one
Change-Id: I3c1a93a9d9a3c2e781e28c57fd232800aa6d11c6
This commit is contained in:
parent
136255e011
commit
29726c28e3
@ -4,9 +4,7 @@
|
||||
package se.su.dsv.scipro.data.dataobjects;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.SortedSet;
|
||||
import java.util.TreeSet;
|
||||
|
||||
@ -17,7 +15,6 @@ import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.ManyToMany;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.PrePersist;
|
||||
import javax.persistence.PreUpdate;
|
||||
@ -55,8 +52,6 @@ public class MessageBoard extends DomainObject{
|
||||
@Basic(optional=false)
|
||||
public String title;
|
||||
|
||||
@ManyToMany
|
||||
private Set<User> subscribers = new HashSet<User>();
|
||||
@Basic(optional=false)
|
||||
@Column(length=255)
|
||||
private String commentableKey;
|
||||
@ -133,21 +128,8 @@ public class MessageBoard extends DomainObject{
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
/**
|
||||
* @return the subscribers
|
||||
/* (non-Javadoc)
|
||||
* @see se.su.dsv.scipro.data.dataobjects.interfaces.Commentable#getCommentKey()
|
||||
*/
|
||||
public Set<User> getSubscribers() {
|
||||
return subscribers;
|
||||
}
|
||||
/**
|
||||
* @param subscribers the subscribers to set
|
||||
*/
|
||||
public void setSubscribers(Set<User> subscribers) {
|
||||
this.subscribers = subscribers;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user