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 email;
|
||||
private String password;
|
||||
private Collection<Preference> preference = new ArrayList<Preference>();
|
||||
private Collection<Preference> preference = new ArrayList<>();
|
||||
private List<EnumRole> roleList;
|
||||
|
||||
public Personne() {
|
||||
|
|
|
@ -15,7 +15,6 @@ public class PreferencePK implements Serializable {
|
|||
|
||||
public PreferencePK() {
|
||||
super();
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
public PreferencePK(Personne personne, Restaurant restau) {
|
||||
|
@ -35,7 +34,7 @@ public class PreferencePK implements Serializable {
|
|||
this.personne = personne;
|
||||
}
|
||||
|
||||
@ManyToOne // TODO mappedBy preferences dans restaurant
|
||||
@ManyToOne
|
||||
@PrimaryKeyJoinColumn(name="id_restau",referencedColumnName ="id_restau" )
|
||||
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
|
||||
public Restaurant getRestau() {
|
||||
|
|
|
@ -30,12 +30,13 @@ public class Restaurant {
|
|||
private String latitude;
|
||||
private String longitude;
|
||||
private String website;
|
||||
private Collection<TypeRestau> typerestaus = new ArrayList<TypeRestau>();
|
||||
private Collection<Preference> preference = new ArrayList<Preference>();
|
||||
private Collection<TypeRestau> typerestaus = new ArrayList<>();
|
||||
private Collection<Preference> preference = new ArrayList<>();
|
||||
|
||||
public Restaurant() {
|
||||
super();
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
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) {
|
||||
super();
|
||||
|
|
Loading…
Add table
Reference in a new issue