В моем приложении Spring Boot есть два объекта. Каталог и КаталогКатегория (связующая таблица).
При весенней загрузке 3.3.7 следующий код работал как положено:
12T14:17:15.098+02:00 ERROR 26596 --- [io-8080-exec-10] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.TransientObjectException: persistent instance references an unsaved transient instance of 'com.techi.gox.model.Category' (save the transient instance before flushing)] with root cause
org.hibernate.TransientObjectException: persistent instance references an unsaved transient instance of 'com.techi.gox.model.Category' (save the transient instance before flushing)
at org.hibernate.engine.spi.CascadingActions$9.cascade(CascadingActions.java:382) ~[hibernate-core-6.6.2.Final.jar:6.6.2.Final]
at org.hibernate.engine.spi.CascadingActions$9.cascade(CascadingActions.java:372) ~[hibernate-core-6.6.2.Final.jar:6.6.2.Final]
Есть какие-нибудь намеки на то, что я делаю неправильно? или почему в новой версии весенней загрузки происходит сбой?
Большое спасибо!
В моем приложении Spring Boot есть два объекта. Каталог и КаталогКатегория (связующая таблица). При весенней загрузке 3.3.7 следующий код работал как положено: [code] public void deepDelete(Category category) {
} [/code] После обновления до Spring Boot 3.4.0 я получаю следующее исключение объекта Transient: [code]12T14:17:15.098+02:00 ERROR 26596 --- [io-8080-exec-10] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.TransientObjectException: persistent instance references an unsaved transient instance of 'com.techi.gox.model.Category' (save the transient instance before flushing)] with root cause
org.hibernate.TransientObjectException: persistent instance references an unsaved transient instance of 'com.techi.gox.model.Category' (save the transient instance before flushing) at org.hibernate.engine.spi.CascadingActions$9.cascade(CascadingActions.java:382) ~[hibernate-core-6.6.2.Final.jar:6.6.2.Final] at org.hibernate.engine.spi.CascadingActions$9.cascade(CascadingActions.java:372) ~[hibernate-core-6.6.2.Final.jar:6.6.2.Final] [/code] Есть какие-нибудь намеки на то, что я делаю неправильно? или почему в новой версии весенней загрузки происходит сбой? Большое спасибо!