Getting user from db via hibernate sample