- Published on
Hibernate
- Authors
- Name
- Lucian Oprea
- @LucianDSA_
00:30:00
Basics and Introduction
⏷ 1. What is Hibernate, and why is it used?
⏷ 2. What are the advantages of using Hibernate over JDBC?
⏷ 3. What is the Hibernate architecture?
⏷ 4. What is the difference between Hibernate and Spring JPA?
Configuration
⏷ 5. How do you configure Hibernate with XML and annotations?
⏷ 6. What is the purpose of hibernate.cfg.xml
?
⏷ 7. How do you set up Hibernate with a Java configuration (without XML)?
⏷ 8. What is the role of the SessionFactory
?
Mapping
⏷ 9. What is ORM (Object-Relational Mapping)?
⏷ 10. How do you map a Java class to a database table?
⏷ 11. What is the difference between @Entity
and @Table
annotations?
⏷ 12. How do you map relationships (one-to-one, one-to-many, many-to-many)?
⏷ 13. What are the advantages of lazy loading in mapping?
⏷ 14. How do you perform create, read, update, and delete operations in Hibernate?
⏷ 15. What's the difference between transient and detached entities?
⏷ 16. How do you use save()
vs persist()
?
⏷ 17. What is the difference between update()
and merge()
?
⏷ 18. How does Hibernate handle primary key generation?
Caching
⏷ 19. What is caching in Hibernate, and why is it important?
⏷ 20. What is the difference between first-level and second-level caching?
⏷ 21. What are the popular caching providers in Hibernate?
Querying
⏷ 22. What is HQL (Hibernate Query Language)?
⏷ 23. How is HQL different from SQL?
⏷ 24. What is the Criteria API in Hibernate?
⏷ 25. How do you use native SQL queries in Hibernate?
Transactions and Concurrency
⏷ 26. How does Hibernate manage transactions?
⏷ 27. What is the difference between commit()
and flush()
?
⏷ 28. What are the use cases for optimistic locking and pessimistic locking?
⏷ 29. What are the isolation levels in Hibernate?
Performance Tuning
⏷ 30. How do you optimize Hibernate queries?
⏷ 31. How does lazy and eager loading impact performance?
⏷ 32. How do you analyze the SQL generated by Hibernate?
⏷ 33. What are batch processing and its benefits in Hibernate?
Advanced Features
⏷ 34. What are Hibernate interceptors and event listeners?
⏷ 35. How do you implement a custom ID generator in Hibernate?
⏷ 36. What is Hibernate’s dirty checking mechanism?
⏷ 37. What is the difference between get()
and load()
?
Integrations
⏷ 38. How do you integrate Hibernate with Spring?
⏷ 39. What are Hibernate's capabilities in a microservices architecture?
⏷ 40. How do you use Hibernate with JPA?
Error Handling and Debugging
⏷ 41. What are common exceptions in Hibernate?
⏷ 42. How do you debug lazy initialization exceptions?
⏷ 43. How do you resolve issues related to n+1 queries in Hibernate?
Testing
⏷ 44. How do you test Hibernate applications?
⏷ 45. What are in-memory databases, and how are they used in Hibernate testing?
⏷ 46. How do you mock Hibernate Session
objects?