S
shaji.cc
Hello all:
I am a newbie to hibernate and ORM concepts. I just want to make sure
whether my understanding is correct or not.
Consider a client-server scenario. I am mapping an object with a table
from the database at the server. So hibernate makes this object
persistent by storing the current state of this object. Now server
sends response to the client and request comes back. Now server need
not contact database again to get the object mappings. (Otherwise you
need to to keep the whole object in the session, which makes the
session bulky)
Is this understanding correct?
How actually hibernate achieve persistence? Where do they actually save
the ORM mapping details?
If I have 10 tables in database, will hibernate make extra tables in
database to store these details?
Does hibernate use HSQL for this purpose?
Hope my question is clear. Can anybody answer to my queries.
-TIA,
Shaji.
I am a newbie to hibernate and ORM concepts. I just want to make sure
whether my understanding is correct or not.
Consider a client-server scenario. I am mapping an object with a table
from the database at the server. So hibernate makes this object
persistent by storing the current state of this object. Now server
sends response to the client and request comes back. Now server need
not contact database again to get the object mappings. (Otherwise you
need to to keep the whole object in the session, which makes the
session bulky)
Is this understanding correct?
How actually hibernate achieve persistence? Where do they actually save
the ORM mapping details?
If I have 10 tables in database, will hibernate make extra tables in
database to store these details?
Does hibernate use HSQL for this purpose?
Hope my question is clear. Can anybody answer to my queries.
-TIA,
Shaji.