-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate MCQ
PostPosted: Sat Nov 23, 2013 1:40 pm 
Newbie

Joined: Sat Nov 23, 2013 1:10 pm
Posts: 1
1)which one of the following elements not supported by HQL?
a)select
b)SUB
c)WHERE
d)HAVING

2)where multiple components are involved in processing the request in a single transaction,which method is used to get the session object.
a)opensession()
b)getsession()
c)getcurrentsession()
d)all of the above

3)which statement is not correct about HQL
a)it is a object oriented query language
b)it supports all types of operation i.e DML DDL FROM Hibernate 1.x to till now
c) it support pagination
d)HQL queries are compiled to sql of a database or any other native query language the target database supports.


4)which state does the persistent object more to when the transaction is commited and the session is closed?
a)permanet
b)detached
c)initial
d)persistent

5)which hibernate property do you use to configure your chosen database.
a)hibernate.configdatabase
b)hibernate.changedatabas
c)hibernate.setdatabase
d)hibernate.dialect


can anyone tell the answer


Top
 Profile  
 
 Post subject: Re: Hibernate MCQ
PostPosted: Tue Jan 06, 2015 4:24 am 
Newbie

Joined: Mon Jan 05, 2015 10:41 am
Posts: 1
Below I am answering the multiple choice questions find it if I am wrong please correct it.

1) b
2)d
3) b; DML is not supported by HQL
4)b
5)d


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.