I am trying to create a ToDo List with Vaadin/ Hibernate /Spring /MySQL.
So my <hibernate mapping> looks like this
And my Task.java thus
I am expecting that each Task in the Task table will have an entry ParentId which in relation to TaskId (indexed key of the table) will give the one-to-many parent to child collection mapping.
Obviously it seems that this mapping is not something i understood very well.
Because hibernate complains ..
nested exception is org.hibernate.MappingException: Repeated column in mapping for entity: com.intellizens.ribbon.tasks.model.Task column: parentId (should be mapped with insert="false" update="false")
Or is it that i am expecting hibernate to read my mind.. and making a obvious mistake.