1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
@Entity
@Table(name = "tache", schema = "public")
public class TacheData implements java.io.Serializable {
private int tacheId;
private Set<TacheData> tachesPrecedentes = new HashSet<TacheData>();
private Set<TacheData> tachesSuivantes = new HashSet<TacheData>();
...
@Id
@ManyToOne
@Column(name = "tache_id", unique = true, nullable = false)
public int getTacheId() {
return this.tacheId;
}
...
@OneToMany(fetch = FetchType.LAZY)
@JoinColumn( name = "tache_id", nullable = false, updatable = false)
public Set<TacheData> getTachesPrecedentes() {
return this.tachesPrecedentes;
}
...
@OneToMany(fetch = FetchType.LAZY)
@JoinColumn( name = "tache_id", nullable = false, updatable = false)
public Set<TacheData> getTachesPrecedentes() {
return this.tachesPrecedentes;
}
...
} |
Partager