modif du constructeur

Policy failures:   
Code warning
- failed on resource User.java. Reason: The import java.util.ArrayList is never used, line 
Override reason:   
f
This commit is contained in:
Maxime Dagnicourt
2007-12-17 23:49:43 +00:00
parent 9948ad262c
commit 7588bad361

View File

@@ -50,14 +50,25 @@ public class User {
@OneToMany(targetEntity=Role.class,mappedBy="user")
private Collection<Role> roles;
public User(String login, String password, String firstName,
String lastName, String organization, String email,
Collection<Role> roles) {
super();
this.login = login;
this.password = password;
this.firstName = firstName;
this.lastName = lastName;
this.organization = organization;
this.email = email;
this.roles = roles;
}
public User() {
}
public User(String string, String string2, String string3, String string4,
String string5, String string6, ArrayList<Role> arrayList) {
// TODO Auto-generated constructor stub
}
@Id
public String getLogin() {