Implemented filling the entities using the result set class.