Bonsoir tous;
Chaque fois que je fais un projet Eclipse jpa rapporte qu'il ya des erreurs dans mon projet(Entity cannot be resolved to a type), mais je ne comprends pas pourquoi il le fait.
voici le code:
Merci d'avance
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 package com.xxxx.hopital.persistence; import static javax.persistence.CascadeType.PERSIST; import static javax.persistence.GenerationType.AUTO; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity public class Analyse { /***************************************************/ private int idAnalyse; private String nomAnalyse; private int idPatient; private int idbloc; private int idTypeanalyse; /***************************************************/ @Id @GeneratedValue(strategy = AUTO) public int getIdAnalyse() { return idAnalyse; } public void setIdAnalyse(int idAnalyse) { this.idAnalyse = idAnalyse; } public String getNomAnalyse() { return nomAnalyse; } public void setNomAnalyse(String nomAnalyse) { this.nomAnalyse = nomAnalyse; } public int getIdPatient() { return idPatient; } public void setIdPatient(int idPatient) { this.idPatient = idPatient; } public int getIdbloc() { return idbloc; } public void setIdbloc(int idbloc) { this.idbloc = idbloc; } public int getIdTypeanalyse() { return idTypeanalyse; } public void setIdTypeanalyse(int idTypeanalyse) { this.idTypeanalyse = idTypeanalyse; } public Analyse() { // TODO Auto-generated constructor stub } }
Partager