File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate: Trouble with a bidirectional list

 
Eric Nielsen
Ranch Hand
Posts: 194
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been struggling with a bidirectional list. Got something working, then realized I needed to flip which side controlled the relationship to allow the IndexColumn to be populated. I've tried following the example in the JPwH book but I get a "Repeated column in mapping for entity: com.ballroomregistrar.compinabox.online.data.Level column: position (should be mapped with insert="false" update="false")" exception. I don't see where the "repeated column" is coming from.

Here's my mapping.



Only accessors for the four members and constructors are omitted from the Level class. There is no member named "position" nor any sort of "virtual" member provided via accessors, etc.

There are numerous other collections hanging off the Competition entity, but none of them use an IndexColumn at present and none have a position field that could be leaking through.

I've also tried removing the various cascade settings (just to more exactly match the books example), but the same exception is thrown).

What am I overlooking?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic