What kind of query standards can be used in hibernate?
Native SQL
HSQL
Both
None of the above
Which one of the following will commit session?
session..commit()
session.getCommitTransaction()
session.getTransaction().commit()
session.getTransaction().save()
What are the different states of persistent classes?
Transient, persistent, destroyed
Transient, stored, detached
Transient, persistent, detached
open, close, detached
What is the way to pass configuration properties to Hibernate?
Pass an instance of java.util.Properties to Configuration.setProperties().
Place hibernate.properties in a root directory of the classpath.
Set System properties using java -Dproperty=value.
All the above
Which is true in the following statements?
Hibernate does not support lazy initialization for detached objects.
Access to a lazy association outside of the context of an open Hibernate session will result in an exception.
Lazy fetching is way to avoid unnecessary column reads.
All the above.
Which statement is executing native query to fetch records from table?
sess.createQuery("SELECT * FROM CATS").list();
sess.createSQLQuery("FROM CATS").list();
sess.createSQLQuery("SELECT * FROM CATS").list();
sess.createSQLQuery("from CATS", com.animals.Cat.class).list();
Which are the valid values for Cascade attribute in mapping xml?
all
persist
delete
To give "physical" presence to the frame of an application, you should declare which method?
BeginPaint()
OnFrame()
OnCreate()
CreateFrame()
Which of the following Data type is used to Return value by window procedure?
LPVOID
LPCSTR
BOOL
LRESULT
which is used to create a view that resembles a dialog box but provides the document/view features?
CScrollView
CEditView
CTreeView
CFormView