Not exactly. Modification of the state of persistent objects (Updates, inserts, deletes) are performed when a flush occurs. The timing of a flush depends on your settings, and could happen when you do a query or when you commit your transaction.
Unless you've changed the default flush settings normally if you execute a query any in-memory changes will be automatically flushed to the database to ensure the result set you get is accurate. As a result of this behavior you are effectively getting what you asked for.
Cheers,
Symon.
|