mirror of
https://github.com/ArenMg/aren.git
synced 2025-01-08 23:29:47 +00:00
fixer problème sur User et Team
This commit is contained in:
parent
6c2d66a4e6
commit
28eee91e47
2 changed files with 0 additions and 34 deletions
|
@ -16,7 +16,6 @@ import javax.xml.bind.annotation.XmlTransient;
|
|||
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
|
||||
import fr.lirmm.aren.model.carto.CDebate;
|
||||
import org.hibernate.annotations.SortNatural;
|
||||
import org.hibernate.annotations.Where;
|
||||
|
||||
|
@ -50,10 +49,6 @@ public class Team extends AbstractEntEntity implements Serializable {
|
|||
@SortNatural
|
||||
private SortedSet<Debate> debates = new TreeSet<>();
|
||||
|
||||
@ManyToMany(mappedBy = "teams")
|
||||
@SortNatural
|
||||
private SortedSet<CDebate> debatesCarto = new TreeSet<>();
|
||||
|
||||
@ManyToMany(mappedBy = "teams")
|
||||
@Where(clause = "is_active = true")
|
||||
@SortNatural
|
||||
|
@ -136,23 +131,6 @@ public class Team extends AbstractEntEntity implements Serializable {
|
|||
this.debates = debates;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@XmlTransient
|
||||
public SortedSet<CDebate> getDebatesCarto() {
|
||||
return debatesCarto;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param debatesCarto
|
||||
*/
|
||||
public void setDebatesCarto(SortedSet<CDebate> debatesCarto) {
|
||||
this.debatesCarto = debatesCarto;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return
|
||||
|
|
|
@ -26,7 +26,6 @@ import java.time.temporal.ChronoUnit;
|
|||
|
||||
import javax.persistence.JoinTable;
|
||||
|
||||
import fr.lirmm.aren.model.carto.CDebate;
|
||||
import fr.lirmm.aren.model.vm.VMTeam;
|
||||
import org.hibernate.annotations.Filter;
|
||||
import org.hibernate.annotations.Filters;
|
||||
|
@ -117,10 +116,6 @@ public class User extends AbstractEntEntity implements Serializable {
|
|||
@SortNatural
|
||||
private SortedSet<Debate> invitedDebates = new TreeSet<>();
|
||||
|
||||
@ManyToMany(mappedBy = "guests")
|
||||
@SortNatural
|
||||
private SortedSet<CDebate> invitedDebatesCarto = new TreeSet<>();
|
||||
|
||||
@OneToMany(mappedBy = "owner")
|
||||
@SortNatural
|
||||
private SortedSet<Comment> comments = new TreeSet<>();
|
||||
|
@ -295,13 +290,6 @@ public class User extends AbstractEntEntity implements Serializable {
|
|||
this.invitedDebates = invitedDebates;
|
||||
}
|
||||
|
||||
public SortedSet<CDebate> getInvitedDebatesCarto() {
|
||||
return invitedDebatesCarto;
|
||||
}
|
||||
|
||||
public void setInvitedDebatesCarto(SortedSet<CDebate> invitedDebatesCarto) {
|
||||
this.invitedDebatesCarto = invitedDebatesCarto;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue