Skip to content

Glossary: Spring Boot Beyond the Basics

Lazy loading

Also written: lazily, LazyInitializationException

Hibernate loads an order's lines only when the code first reads them. If the session is already closed, you get `LazyInitializationException`, so read them inside a transaction.

Where the book teaches it

Related terms

Open-in-view@Transactional