I have a recursive relationship that I'm trying to map correctly. It seems to generate fine, but when I test the mapping by inserting a record into the table it gives me the following error.
org.hibernate.PropertyValueException: not-null property references a null or transient value: com....Track.track
The track class has a recursive relationship with itself being that it is similar to an employee where an employee can be a manager and therefore can have a parent. I set this up correctly in the database and think it is generating correctly, but when I insert a track it refers to the recursive relationship as being null or transient.
I have read through the forums and this seems to be a problem people are running into, yet they end up doing something else. If you are one of those, can you let me know what avenue you ended up taking instead of using a recursive relationship?
Any ideas on how to solve this?
Thanks,
|