S
shaji.cc
Hi,
I am using hibernate 3.0 and would like to know about the comparative
performance of its features.
Assume you have a table person and class Person with primary key
person_id.
Now you can use session.load(Person.class, id) to obtain an instance.
You can also use session.createQuery().*
You can also use session.createCreateCriteria.add(Restrictions).*
Which one of these is faster and efficient in terms of performance.
And, if the primary key is a combination of two columns (composite
keys)
how can one use session.load()?
-Regards
I am using hibernate 3.0 and would like to know about the comparative
performance of its features.
Assume you have a table person and class Person with primary key
person_id.
Now you can use session.load(Person.class, id) to obtain an instance.
You can also use session.createQuery().*
You can also use session.createCreateCriteria.add(Restrictions).*
Which one of these is faster and efficient in terms of performance.
And, if the primary key is a combination of two columns (composite
keys)
how can one use session.load()?
-Regards