Well when I read about different between hibernate 'Persist' and 'Save' method, Many articles has notably highlighted that
"Save method can execute outside the transaction boundary"
This statement made me really confused and I read fair enough articles to understand the real meaning of this, but no luck !!! now I have following points to clarify.
Question 1
is this true?? If true then
Question 2
[assuming transaction means physical DB transaction]
As far as I know no database execution can happen with out transaction, then what it mean by outside of transaction boundary?
Question 3
[assuming transaction means logical transaction]
According materials I refereed, 'session' lay out the logical transaction. so even if it use persist() or save() to persist data it will flush and commit to only after when explicitly commit or session.flush or closing the session.
since session is the logical transaction and no execution can be perform without a session, then what is it mean by save() work outside transaction?
If someone can give me a clear detailed answer it would be a great help Thanks a lot !!!