You may simply store a pointer to entity in a struct