How to get SessoionFactory from configuration object (config) ?
config.createSessionFactory()
config.getSessionFactory()
config.buildSessionFactory()
config. SessionFactory.newInstance()
Which of the following association needs tag element in mapping file?
One to one
One to many
Many to one
None of the above
What should be done to change the actual database system type (say, from DB2 to MySql)?
connection.driver_class property should be changed
connection.url property should be changed
dialect property should be changed
All the above
What is the root element in hibernate.cfg.xml?
What are the different states of persistent classes?
Transient, persistent, destroyed
Transient, stored, detached
Transient, persistent, detached
open, close, detached
If you intend to put instances of persistent classes in a Set, you have to
Override equals() method
Override hashCode() method
Both a and b
Neither a nor b
What kind of query standards can be used in hibernate?
Native SQL
HSQL
Both
Is it possible to load mapping file programmatically?
True
False
You are developing a web application that is retrieving historical library information from a database server and displays it to the users of your application. What cache strategy will give you the best performance?
Use the output cache.
Use the cache object.
Use the ASP.NET central cache.
Use the client cache