LigneAction.java
1.03 KB
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
38
39
40
41
42
43
44
45
package ejb.entites;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Table (name="t_ligne_action") @Entity
public class LigneAction implements java.io.Serializable {
private static final long serialVersionUID = 1L;
public LigneAction() {}
@Id @GeneratedValue private int id ;
private int nombre ;
@ManyToOne private Compte proprietaire ;
@ManyToOne(fetch=FetchType.EAGER) private Action action ;
public int getId() { return id; }
public void setId(int id) { this.id = id; }
public int getNombre() { return nombre; }
public void setNombre(int nombre) {
this.nombre = nombre;
}
public Compte getProprietaire() {
return proprietaire;
}
public void setProprietaire(Compte proprietaire) {
this.proprietaire = proprietaire;
}
public Action getAction() {
return action;
}
public void setAction(Action action) {
this.action = action;
}
}