fix custom repo class when entity is not extended