No student devices needed. Know more
15 questions
Which of the following is true about ORM?
ORM stands for Object-Relational Mapping
ORM is a programming technique for converting data between relational databases and object oriented programming languages
Both
None
In which file database table configuration is stored?
.dbm
.hbm
.ora
.sql
Which of the following is not a state of object in Hibernate?
Persistent()
Detached()
Attached()
Transient()
Which of the following object is used to create SessionFactory object in hibernate?
SessionFactory
Transaction
Configuration
Session
Which of the following is true about query level cache in hibernate?
Query level cache requires two additional physical cache regions that hold the cached query results and the timestamps when a table was last updated
Query level cache is an optional feature
Query level cache is only useful for queries that are run frequently with the same parameters
All of the above
Which of the following are most common configuration methods of Hibernate Configuation
Http.conf
XML Configuration hibernate.cfg.xml
Web.config
Mapping files
Which of the following is FALSE about Session in hibernate
Session represents a single unit-of-work with the database
Session is the primary interface for the persistence service
Session is a light weight non-threadsafe object
You can share the session between threads
Which of the following is NOT a mapping association used in Hibernate?
One-to-Many Association
One-to-One Association
Many-to-Many Association
None
Which of the following is true about hibernate annotations?
All the metadata is clubbed into the POJO java file along with the code this helps the user to understand the table structure and POJO simultaneously during the development
Hibernate Annotations is the powerful way to provide the metadata for the Object and Relational Table mapping
Both of the above
None of the above
Transient and detached objects in hibernate are
Instances of persistent class that are not currently associated with session
Instances of persistent class which are in session
org.hibernate.cfg.Configuration can be used for all configuration and no need of XML.
False
True
Persistent objects and collections in hibernate are
Short-lived, single threaded objects
Long-lived, multi threaded objects
Is it necessary to use hibernate.cfg.xml for configuration in hibernate?
Yes
No
In the elements of Hibernate architecture is a factory of session and client of ConnectionProvider, It holds the second level cache (optional) of data is ?
Session
Transaction
SessionFactory
ConnectionProvider
Hibernate is an?
Open Source
Lightweight
ORM
All mentioned above
Explore all questions with a free account