This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Column index not populated?

 
Nicklas Karlsson
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been following the example in "2.4.6.2.3. Bidirectional association with indexed collections" but I still don't get any population of the index column, any suggestions would be appreciated:





I can't see where I'm going wrong. The childOrder exists so mappedBy can be used on the parent side, right?
(I also posted this on the hib forums but as your slogan says, you have a tendency of being more friendly over here)
 
Nicklas Karlsson
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, gave up on the mappedBy and went for joincolumns and that seemed to work. Now for the next step, composite keys, I modifed the example as









The problem is that I'm trying to get it to work against a legacy schema and I have uses for the childOrder so I'd like it to be part of the key but I get a



even If I try to do so in the embedded key. Can't the column index be pointed against a column/property that is "non-synthetic"?

Suggestions appreciated
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic