This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
TransientObjectException: object references an unsaved transient instance
posted 5 years ago
I am new to Hibernate.
I have been trying to build an application that has the modules: Add/Edit/Delete of Categories, SubCategories, Articles.
SubCategory has a Many-to-one association with Category and Article has a many-to-one association with SubCategory.
here is the hbm.xml files:
Thus I have done the unidirectional many-to-one associations.
Now, I can successfully Add/Edit/Delete both Category and SubCategory, but when I try to add an Article, it displays the following Exception:
javax.servlet.ServletException: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before fl
could you please give me a solution to the problem??