Better handling of hibernate results