Hibernate: Common Exceptions Every Developer Must Know

preview_player
Показать описание
Every framework has a set of exceptions that indicate common error scenarios. Understanding them will help you turn a task that could drag along for days into a quickly-implemented feature. When working with Hibernate, they tell you about issues with your database queries, mapping mistakes, and problems during write operations.

In this video, I want to show you Hibernate’s most common exceptions and how you can avoid or fix them.
0:00 Introduction
0:27 Query-Related Exceptions
4:59 Mapping-Related Exceptions
6:18 Update-Related Exceptions
8:29 Conclusion

Links mentioned:
JPQL – How to Define Queries in JPA and Hibernate

Your 2 best options to fix Hibernate’s MultipleBagFetchException

LazyInitializationException – What it is and the best way to fix it

Like my channel? Subscribe!

Join the free Member Library:

Want to connect with me?

#Hibernate #Exceptions
Рекомендации по теме
Комментарии
Автор

Hi what about errors saying it could not extract Resultset?

Pain-qunr
Автор

can you please share your vs code configuration for java, it's working fine with spring boot, quarkus and microprofile, but for hibernate application vs code not detecting hibernate classes and there is no extensions for hibernate.

naresh_deeti
Автор

i would just catch all these exception in a spring AOP for my DAO layer so that its in a single place and i remember spring data jpa throwing optimisticlockexception instead of Rollbackexception

vishalsundararajan