org.hibernate.action.internal.UnresolvedEntityInsertActions logCannotResolveNonNullableTransientDependencies
WARN: HHH000437: Attempting to save one or more entities that have a non-nullable association with an unsaved transient entity. The unsaved transient entity must be saved in an operation prior to saving these dependent entities.
Unsaved transient entity: ([com.example.hibernateSpring03.model.Table2#0])
Dependent entities: ([[com.example.hibernateSpring03.model.Table1#<null>]])
Non-nullable association(s): ([com.example.hibernateSpring03.model.Table1.table2])
nov. 06, 2013 9:46:46 PM org.hibernate.action.internal.UnresolvedEntityInsertActions logCannotResolveNonNullableTransientDependencies
WARN: HHH000437: Attempting to save one or more entities that have a non-nullable association with an unsaved transient entity. The unsaved transient entity must be saved in an operation prior to saving these dependent entities.
Unsaved transient entity: ([com.example.hibernateSpring03.model.Table1#0])
Dependent entities: ([[com.example.hibernateSpring03.model.Table2#<null>]])
Non-nullable association(s): ([com.example.hibernateSpring03.model.Table2.table1])
nov. 06, 2013 9:47:00 PM org.apache.catalina.core.StandardWrapperValve invoke
Grave: Servlet.service() for servlet [appServlet] in context with path [/hibernateSpring03] threw exception [Request processing failed; nested exception is org.hibernate.TransientPropertyValueException: Not-null property references a transient value - transient instance must be saved before current operation: com.example.hibernateSpring03.model.Table1.table2 -> com.example.hibernateSpring03.model.Table2] with root cause
org.hibernate.TransientPropertyValueException: Not-null property references a transient value - transient instance must be saved before current operation: com.example.hibernateSpring03.model.Table1.table2 -> com.example.hibernateSpring03.model.Table2
at org.hibernate.action.internal.UnresolvedEntityInsertActions.checkNoUnresolvedActionsAfterOperation(UnresolvedEntityInsertActions.java:135)
at org.hibernate.engine.spi.ActionQueue.checkNoUnresolvedActionsAfterOperation(ActionQueue.java:251)
at org.hibernate.internal.SessionImpl.checkNoUnresolvedActionsAfterOperation(SessionImpl.java:711)
at org.hibernate.internal.SessionImpl.fireSave(SessionImpl.java:766)
Partager