Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Hibernate Interview Questions and Answers

Question: What are POJOs?
Answer: POJO stands for plain old java objects. These are just basic JavaBeans that have defined setter and getter methods for all the properties that are there in that bean. Besides they can also have some business logic related to that property. Hibernate applications works efficiently with POJOs rather then simple java classes.
Use setter when you need to mutate/set some values in bean object. 
Use getter when you need to get values from bean.
In Hibernate, after creating the bean object you should set values to bean and save or update bean object to session or after setting you can get values from bean if you want to fetch bean data.
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook