Академический Документы
Профессиональный Документы
Культура Документы
Q2) What is the default filename of Hibernate configuration file used in an web-
application?
a) hibernate.config.properties
b) hib.config.xml
c) hibernate.cfg.xml
d) None of the above
Q4) Which of the following Hibernate APIs are NOT a part of the core Hibernate API?
a) Session
b) Interceptor
c) UserType
d) Configuration
Q7) Which of the following interfaces allow the persistent object to react to events
related to its own persistence lifecycle?
a) Lifecycle
b) Criteria
c) Configuration
d) None of the above
Q8)
for the above SessionFactory configuration the mapping file is:
a) Item.class.xml
b) Item.hib.xml
c) Item.hbm.xml
d) Item.class.hbm.xml
Q9) Which of the following are valid hibernate properties (.properties and .xml file)?
a) hibernate.connection.driver_class
b) dialect
c) hibernate.query_class
d) All the above
Q10) Developer must implement the Serializable interface for all POJOs to be used
by Hibernate.
a) True
b) False
Q11)
Which of the following statements are true?
a) Hibernate would throw a MappingException since there is no type
attribute.
b) Hibernate would continue processing assuming String/varchar type for the
column.
c) Hibernate would use reflection on the POJO for the mapping file and
determine the type accordingly.
d) Hibernate would query the table metadata to determine the type of the
column.
Q12)
The value of column NAME is never persisted to the database by Hibernate.
a) True
b) False
Q16) Session.get() will throw exception when data is not found in the DB.
a) True
b) False
Q17) Mark the correct answers/s. Session.evict() has the following effect:
a) delete the row from the database
b) delete the entry from the cache
c) both the above
Q20) Hibernate POJOs cannot be used by along side CMP Entity Beans.
a) true
b) false