Hi Naveen,
The commit option in Mendix serves different purposes for persistable and non-persistent objects. Let me break it down for you:
Persistable Objects:
Non-Persistent Objects:
In summary, committing non-persistent objects is useful for maintaining in-memory state and enabling rollbacks, while committing persistable objects ensures data persistence in the database. Happy Mendix development! ๐๐
Hi Naveen,
When you need to store data in a database, you use a persistable entity. A non-persistable entity cannot be stored in the database; it exists only in runtime memory.
For example, a form input that collects user data temporarily before processing or validation would use a non-persistable entity."
I hope this helps you understand the concept better !!