generate coreData entity