Popular Posts

Thursday, May 10, 2012

Hibernate advance level/difficult interview questions & answers


Some are common, but some are very core technical, senior level questions:

1) What's difference / comparison between hibernate and Ibatis? & JPA?
2) Whats lazy-loading in hibernate?
3) How to implement query in hibernate.
4) How to configure cache in hibernate.
5) Difference between load and get method
6) What are the configuration files; Can we have more than one configuration files, How application is aware of them.
7) How to define relationship of Objects in hibernate
8) Caching in Hibernate.
9) What is Hibernate SessionFactory
10) How to define mapping in Hibernate.

11) what are 3 states of object in Hibernate
12) How to reattach the detached object in Hibernate.
Ans) Session.merge(obj)

13) Integration of spring with hibernate?
14) what is lazy initialization?
15) what is n+1 problem in hibernate

16) Life cycle / stages of hibernate entities / objects.
Ans) Transient, Persistent, Removed & detached.
http://www.site.lalitbhatt.com/hibernate-entities-life-cycle

17) How can we create session in hibernate
18) How many configuration file in hibernate
19) How will you configure Hibernate in you app?
20) Collections supported by Hibernate

21) Inheritance in Hibernate.
22). Optimistic locking in Hibernate.

23) Design Patterns in Hibernate.
Ans - hibernate uses / based upon Data Mapper.
http://stackoverflow.com/questions/1308096/which-pattern-does-hibernate-follow
http://martinfowler.com/eaaCatalog/dataMapper.html

Answers to follow.

15 comments:

Rajapriya R said...

great one

job oriented java training | java training course contents | java training topics | best java j2ee training institute in chennai

Muthukumar Prakash said...

Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more .
java training in chennai

Java Online Training said...

Nice and Valuable information you explained in this article I loved it more, it useful for me a lot. Bookmarked your site.
Regards,
Java Online Training | Java Online Training in India | Java Online Training India | Java Online Training in Hyderabad | Java Online Training Hyderabad | Java Training in Hyderabad | Java Training in India | Java Training Institutes in India

srihariparu said...

Really nice post.Thanks for sharing.
Android Project Center in Chennai | Android Project Center in Velachery

srihariparu said...

Great post and informative blog.it was awesome to read, thanks for sharing this great content to my vision. This is a great inspiring article.I am pretty much pleased with your good work. You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post..

Best Python Training in Chennai | Python Certification Training Centers in Chennai | Python Exams in Chennai | Python Exam Center in Chennai

deepti said...

Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging…This is a great inspiring article.I am pretty much pleased with your good work. You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post..


Best Python Training in Chennai | Python Certification Training Centers in Chennai | Python Exams in Chennai | Python Exam Center in Chennai

srihariparu said...

Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging…
Embedded System Training Institute in Kanchipuram | Embedded Training Center in Kanchipuram

srihariparu said...

Great post....Thank you for posting the great content……I found it quiet interesting, hopefully you will keep posting such blogs…Keep updating your creative and awesome blog.

Best Python Exam Center in Chennai | Python Certification Training in Chennai | Python Training in Chennai | Python Exams in Chennai

srihariparu said...

This is a great inspiring article.I am pretty much pleased with your good work. You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post,.Thank You For Sharing This Information..
Best CCNA Training Institute in Chennai | CCNA Training Center in Velachery

ajay said...

Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging…
Best Linux Training Institute in Kanchipuram | No.1 Linux Training Center in Kanchipuram

deepti said...

Great post and informative blog.it was awesome to read, thanks for sharing this great content to my vision. This is a great inspiring article.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post..
Best Python Exam Center in Chennai | Python Certification Training in Chennai | Python Training in Chennai | Python Exams in Chennai

srihariparu said...

Your article is really amazing with useful information you are shared,its very helpful for everyone.Thanks a lot for sharing such an informative information.keep updating..
Best Python Exam Center in Chennai | Python Exams in Chennai | Python Exams in Velachery

srihariparu said...

Very informative post and useful post so happy to read this article share it for everyone.Pretty post. Whatever we accumulated data from the web journals, we ought to actualize that in basically then no one but we can comprehend that precise thing obviously.

Linux Training Institute in Chennai | Linux Training Institute in Velachery

srihariparu said...

Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging…
Best Java Training Institute in Chennai | Java Training in Velachery

srihariparu said...

It’s really a nice and helpful piece of information. I’m satisfied that you just shared this helpful information with us. Please stay us informed like this. Thanks for sharing.
MatLab Training Institute in Chennai | MatLab Training in Velachery