Repository uses generated classes