I am new to Hibernate but we are using it in our project. I am attempting to save a class called FENode that is used to build a tree using 2-D graphics in a Java application. The FENodes can have a single parent and one or more child nodes. Both the parent and children nodes are also FENodes. The FENodes use a class called IOPad that is their connector through which the parent and children FENodes are connected. When I attempt to add a new child FENode to a another FENode in the graph I get the hibernate exception:
"org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: IOpad".
I am getting the session and then doing a
where FENodeRoot is the root node of the 2-D graph.