Hi all, We want to delete a persistent entity from a domain model. What happens to the objects of that entity that were stored in the database, are they automatically deleted after the entity is? If not, should we first delete all the objects and then delete the entity (as I’m assuming that retrieving objects of a deleted entity is not really possible)? Thanks in advance for the help! Margaux
Margaux Van Geem
When you delete the entity from the domain model, the table will be dropped from the database. So yes all the object will be removed. You check check this locally
Create entity, run model
Delete entity, run model and check synchonization script.