Vote count:
0
I'm looking for how to use Filter using clauses AND or OR to make a login in my application.
//Beans
@Entity
public class Person {
@Id
@GeneratedValue
private Integer id;
@NotNull
@Size(min=5, max=50)
private String name;
private Email email;
@Size(min=8,max=8)
private String password;
@ManyToOne
private PersonType personType;
}
@Entity
public class PersonType {
@Id
@GeneratedValue
private Integer id;
@NotNull
@Size(min=5, max=50)
private String personType;
}
How to I can do a Filter that check Email and Password of Person and return a List ?
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire