Entity generator - trait in parent class