Ticket 3. User Managment

Hi! I have an exception in UserDao.java in method User getUser(String email):

java.lang.ClassCastException: class java.util.HashMap cannot be cast to class mflix.api.models.User

Why Why I got HashMap instead of User Object?

Or here I have to make a CustomCodec?
If so, why there is no info about?

Please share the code in the getUser method.


The code is fine. I found that User class extends Document class. Fixed. Already finished course. Thank you.