-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModePaiement.java
More file actions
73 lines (54 loc) · 1.77 KB
/
ModePaiement.java
File metadata and controls
73 lines (54 loc) · 1.77 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package com.gc.entities;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import com.fasterxml.jackson.annotation.JsonBackReference;
@Entity
@Table(name="modepaiement")
public class ModePaiement implements Serializable{
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Integer code_modePay;
private String libelle_modePay;
//Jointures JPA
@OneToMany(mappedBy="modePaiement",fetch=FetchType.LAZY,cascade = { CascadeType.ALL })
private List<Fournisseur> listfournisseur=new ArrayList<Fournisseur>();
@JsonBackReference
@OneToMany(mappedBy="modePaiement",fetch=FetchType.LAZY,cascade = { CascadeType.ALL })
private List<Client> listclient=new ArrayList<Client>();
public ModePaiement() {
}
//getters and setters
public Integer getCode_modePay() {
return code_modePay;
}
public void setCode_modePay(Integer codeModePay) {
code_modePay = codeModePay;
}
public List<Fournisseur> getListfournisseur() {
return listfournisseur;
}
public void setListfournisseur(List<Fournisseur> listfournisseur) {
this.listfournisseur = listfournisseur;
}
public String getLibelle_modePay() {
return libelle_modePay;
}
public void setLibelle_modePay(String libelleModePay) {
libelle_modePay = libelleModePay;
}
public List<Client> getListclient() {
return listclient;
}
public void setListclient(List<Client> listclient) {
this.listclient = listclient;
}
}