What happens with (old) entities in the database after a new deployment when we change an existing entity from persistent to non-persistent in the domain model ?
We have a persistent entity which from a functional point of few can be changes into a non-persistent entity. The entity is/was used as a buffer and there is/was no need to store the entity information in the database. However, as it was persistent and committed, there are a lot of these entities now stored in the databases. What happens with those entities in the database if we change in the domain model the entity from persistent to non-persistent. (All other functions remain working, that has been tested). Are these entities removed from the database automatically, or do we have to remove them first ?
Robert Jan Gorter
Database table will be deleted and thus all data will be gone