Issue #59 : HQL query used to get user for login

TODO SB : Create task to migrate from hibernate specific criteria and HQL to JPQL