entity type is now using type param instead of class