wood burning stoves*
The moose likes Object Relational Mapping and the fly likes Column index not populated? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Column index not populated?" Watch "Column index not populated?" New topic
Author

Column index not populated?

Nicklas Karlsson
Greenhorn

Joined: Oct 03, 2007
Posts: 4
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

Joined: Oct 03, 2007
Posts: 4
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Column index not populated?
 
Similar Threads
Unable to save data into child table
2nd Level cache eviction not cascading
hibernate search problem w/ entity inheritance
autogenerating db-schema cascade=CascadeType.REMOVE but no ON DELETE CASCADE
@PrimaryKeyJoinColumn with bidirectional @OneToOne relationship and @Id