java.lang.ClassCastException: java.lang.Integer cannot be cast
- by theJava
When i click on login, it checks the DB if there is a value matching then i get this error, else it does print me null.
public Login authenticate(Login login) {
String query = "SELECT 1 FROM Login AS l WHERE l.email=? AND l.password=?";
Object[] parameters = { login.getEmail(), login.getPassword() };
List resultsList =…