Hi everyone.
Today i'm using hibernate and a little issue came up.
My db has 4 tables: Locations, Events, Speakers and Attendees.
Locations to Events relationship has 0:N cardinality.
Events to Speakers/Attendees relationship has 0:N cardinality.
I mapped all these tables with pojo obj having a set listing all my children.
This is what i'm trying to do:
This snippet throws a org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: xxx.hib.test.Event
Is there a way to do something like that? What should i do?
Today i'm using hibernate and a little issue came up.
My db has 4 tables: Locations, Events, Speakers and Attendees.
Locations to Events relationship has 0:N cardinality.
Events to Speakers/Attendees relationship has 0:N cardinality.
I mapped all these tables with pojo obj having a set listing all my children.
This is what i'm trying to do:
This snippet throws a org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: xxx.hib.test.Event
Is there a way to do something like that? What should i do?