How can I hash user password in user entity class in Spring API Service? Should I do this in a different class and should it related with controller class?