inherit entity from model