Added getters and setters for user field in the Credentials entity
Removed import javaz.persistence.JoinColumn
Solved the problem in findByCredentials method in the UserDAO