Thanks.I read the difference in the blog. On choosing between the two it says:
"If you’re certain the persistent
object exists, and nonexistence would be considered exceptional, load() is a
good option. If you aren’t certain there is a persistent instance with the given
identifier, use get() and
test the return value to see if it’s null"
I still have doubt. If I have an application with User objects.To display these which approach will I use:
a) use query "from User"
b) Use get method.
c) Use load method.