Unfetched attribute access error

Здравствуйте, вышла такая проблема
Снимок экрана 2021-06-19 в 17.33.01
в логе написано:
Caused by: org.eclipse.persistence.exceptions.ValidationException:
Exception Description: An attempt was made to traverse a relationship using indirection that had a null Session. This often occurs when an entity with an uninstantiated LAZY relationship is serialized and that relationship is traversed after serialization. To avoid this issue, instantiate the LAZY relationship prior to serialization.

У меня есть Entity- Order и внутри метод getAmount() который вызывает другой метод из entity - getProduct(). One-To-Many связь с другим Entity - Product.
Когда вызывается getProduct() выходит эта ошибка.
Снимок экрана 2021-06-19 в 17.36.00

Добавил fetch в jpql и сработало.