Ilyak wrote:
Can you be more specific about side-effects I might get?
I would go that evict route, but unfortunately evict doesn't work if object is mapped with natural id. Now I'm considering having those natural-ids removed, remapped as plain properties.
A transaction might be synchronizing multiple resources. In this case your use case may cause other use cases to fail. This is usually a good failure opportunity for a software system that evolves through time. It makes it almost impossible for other developers to respect your decision since transactions have a broader usage.
Farzad-