Check if entity have correct repository type