Saved Bookmarks
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What are concurrency strategies? |
| Answer» | |
| 2. |
What is Query level cache in hibernate? |
| Answer» | |
| 3. |
What is second level cache in hibernate? |
| Answer» | |
| 4. |
What is first level cache in hibernate? |
| Answer» | |
| 5. |
What is HQL? |
| Answer» | |
| 6. |
What is lazy loading? |
| Answer» | |
| 7. |
What is the difference between get() and load() methods of session object? |
| Answer» | |
| 8. |
What is the difference between save() and persist() methods of session object? |
| Answer» | |
| 9. |
Is Session a thread-safe object? |
| Answer» | |
| 10. |
Is SessionFactory a thread-safe object? |
| Answer» | |
| 11. |
What is many-to-many association? |
| Answer» | |
| 12. |
What is one-to-many association? |
| Answer» | |
| 13. |
What is one-to-one association? |
| Answer» | |
| 14. |
What is many-to-one association? |
| Answer» | |
| 15. |
Which element of hbm.xml is used to map a java.util.SortedMap property in hibernate? |
| Answer» | |
| 16. |
Which element of hbm.xml is used to map a java.util.Map property in hibernate? |
| Answer» | |
| 17. |
Which element of hbm.xml is used to map a java.util.Collection property in hibernate? |
| Answer» | |
| 18. |
Which element of hbm.xml is used to map a java.util.List property in hibernate? |
| Answer» | |
| 19. |
Which element of hbm.xml is used to map a java.util.SortedSet property in hibernate? |
| Answer» | |
| 20. |
Which element of hbm.xml is used to map a java.util.Set property in hibernate? |
| Answer» | |
| 21. |
Which element of hbm.xml is used to map a Java class property to a column in the database table? |
| Answer» | |
| 22. |
Which element of hbm.xml is used to automatically generate the primary key values? |
| Answer» | |
| 23. |
Which element of hbm.xml defines maps the unique ID attribute in class to the primary key of the database table? |
| Answer» | |
| 24. |
Which element of hbm.xml defines a specific mappings from a Java classes to the database tables? |
| Answer» | |
| 25. |
What is root node of hbm.xml? |
| Answer» | |
| 26. |
Where Object/relational mappings are defined in hibernate? |
| Answer» | |
| 27. |
What are the best practices that hibernate recommends for persistent classes. |
| Answer» | |
| 28. |
What are persistent classes in hibernate? |
| Answer» | |
| 29. |
Which method is used to save or update the state of the given instance from the underlying database? |
| Answer» | |
| 30. |
Which method is used to update the state of the given instance from the underlying database? |
| Answer» | |
| 31. |
Which method is used to save the state of the given instance from the underlying database? |
| Answer» | |
| 32. |
Which method is used to re-read the state of the given instance from the underlying database? |
| Answer» | |
| 33. |
Which method is used to get a persistent instance from the datastore? |
| Answer» | |
| 34. |
Which method is used to remove a persistent instance from the datastore? |
| Answer» | |
| 35. |
Which method is used to create a SQL query? |
| Answer» | |
| 36. |
Which method is used to create a HQL query? |
| Answer» | |
| 37. |
Which method is used to add a criteria to a query? |
| Answer» | |
| 38. |
What is the purpose of Session.beginTransaction() method? |
| Answer» | |
| 39. |
What are the three states of a persistent entity at a given point in time? |
| Answer» | |
| 40. |
Name some of the properties you would require to configure for a databases in a standalone situation. |
| Answer» | |
| 41. |
What is Criteria in hibernate? |
| Answer» | |
| 42. |
What is Query in hibernate? |
| Answer» | |
| 43. |
What is Transaction in hibernate? |
| Answer» | |
| 44. |
What is Session in hibernate? |
| Answer» | |
| 45. |
What is a SessionFactory in hibernate? |
| Answer» | |
| 46. |
What is a configuration object in hibernate? |
| Answer» | |
| 47. |
What are the two key components of a hibernate configuration object? |
| Answer» | |
| 48. |
What are the key components/objects of hibernate? |
| Answer» | |
| 49. |
Name some of the java based tools/frameworks that supports hibernate integration. |
| Answer» | |
| 50. |
Name some of the databases that hibernate supports. |
| Answer» | |