-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCategorieClient.java
More file actions
64 lines (50 loc) · 1.37 KB
/
CategorieClient.java
File metadata and controls
64 lines (50 loc) · 1.37 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
package com.gc.entities;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
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;
/**
* @author mkonzali
* 20-07-2018
*/
@Entity
@Table(name="categorieclient")
public class CategorieClient implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy =GenerationType.AUTO)
private Integer id_categorieClient;
//Nom de la categorie
private String nom_categorie;
//Jointures JPA
@JsonBackReference
@OneToMany(mappedBy="categorieClient")
private List<Client> client=new ArrayList<Client>();
public Integer getId_categorieClient() {
return id_categorieClient;
}
public void setId_categorieClient(Integer idCategorieClient) {
id_categorieClient = idCategorieClient;
}
public String getNom_categorie() {
return nom_categorie;
}
public void setNom_categorie(String nomCategorie) {
nom_categorie = nomCategorie;
}
public List<Client> getClient() {
return client;
}
public void setClient(List<Client> client) {
this.client = client;
}
}