Hi all,
Would like guidance mapping objects in Hibernate
I keep getting Error :
org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
I have Table "persons" Person is related to other persons through relation table (relations)
PersonHib - holds 2 collection of "relation" objects - children, parents (need this connection in order for the relation record to hold relation data)
RelationHib - hold 2 references Parent, and Child (both PersonHib)
I Would like to be able to persist the parents through RelationHib