This question is locked. New answers and comments are not allowed.
Hello,
Before saving an object, i want it to do some validation. I thought of using the PreStore method from the IInstanceCallbacks interface to achieve this behaviour. However it seems the PreStore is also executed when flushing changes which results in faulty validation as the object isn't 'ready' yet. Is there a way to know is the PreStore is called because of a flush or a save?
Kind regards,
Stijn
Before saving an object, i want it to do some validation. I thought of using the PreStore method from the IInstanceCallbacks interface to achieve this behaviour. However it seems the PreStore is also executed when flushing changes which results in faulty validation as the object isn't 'ready' yet. Is there a way to know is the PreStore is called because of a flush or a save?
Kind regards,
Stijn