Corrections sonar
This commit is contained in:
parent
800f2103a7
commit
7d20b28544
3 changed files with 6 additions and 6 deletions
|
@ -23,7 +23,7 @@ public class Personne {
|
||||||
private String prenom;
|
private String prenom;
|
||||||
private String email;
|
private String email;
|
||||||
private String password;
|
private String password;
|
||||||
private Collection<Preference> preference = new ArrayList<Preference>();
|
private Collection<Preference> preference = new ArrayList<>();
|
||||||
private List<EnumRole> roleList;
|
private List<EnumRole> roleList;
|
||||||
|
|
||||||
public Personne() {
|
public Personne() {
|
||||||
|
|
|
@ -15,7 +15,6 @@ public class PreferencePK implements Serializable {
|
||||||
|
|
||||||
public PreferencePK() {
|
public PreferencePK() {
|
||||||
super();
|
super();
|
||||||
// TODO Auto-generated constructor stub
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public PreferencePK(Personne personne, Restaurant restau) {
|
public PreferencePK(Personne personne, Restaurant restau) {
|
||||||
|
@ -35,7 +34,7 @@ public class PreferencePK implements Serializable {
|
||||||
this.personne = personne;
|
this.personne = personne;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ManyToOne // TODO mappedBy preferences dans restaurant
|
@ManyToOne
|
||||||
@PrimaryKeyJoinColumn(name="id_restau",referencedColumnName ="id_restau" )
|
@PrimaryKeyJoinColumn(name="id_restau",referencedColumnName ="id_restau" )
|
||||||
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
|
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
|
||||||
public Restaurant getRestau() {
|
public Restaurant getRestau() {
|
||||||
|
|
|
@ -30,12 +30,13 @@ public class Restaurant {
|
||||||
private String latitude;
|
private String latitude;
|
||||||
private String longitude;
|
private String longitude;
|
||||||
private String website;
|
private String website;
|
||||||
private Collection<TypeRestau> typerestaus = new ArrayList<TypeRestau>();
|
private Collection<TypeRestau> typerestaus = new ArrayList<>();
|
||||||
private Collection<Preference> preference = new ArrayList<Preference>();
|
private Collection<Preference> preference = new ArrayList<>();
|
||||||
|
|
||||||
public Restaurant() {
|
public Restaurant() {
|
||||||
super();
|
super();
|
||||||
// TODO Auto-generated constructor stub
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Restaurant(String nom, String adresse, String telephone, Boolean aEmporter, Boolean surPlace, int prix,
|
public Restaurant(String nom, String adresse, String telephone, Boolean aEmporter, Boolean surPlace, int prix,
|
||||||
Boolean accesPMR, String latitude, String longitude, String website, Collection<TypeRestau> typerestaus) {
|
Boolean accesPMR, String latitude, String longitude, String website, Collection<TypeRestau> typerestaus) {
|
||||||
super();
|
super();
|
||||||
|
|
Loading…
Add table
Reference in a new issue