add type reflection to entity model