add setComponents method for loading entity data from objects
change require structure for entitymanager