Hi, we had the same issue with mappedby and IndexColumn. We could solve it by using @JoinColumn in both classes.
So in class Document we had: @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedby="document") @BatchSize(size = 10) @IndexColumn(name="indexInDocument") public List getMessages() { return messages; } and in Message object: @ManyToOne public Document getDocument() { return document; } for @IndexColumn to work I changed annotations: @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) @JoinColumn(name="document_id") @IndexColumn(name="indexInDocument") public List getMessages() { return messages; } @ManyToOne @JoinColumn(name="documentid",insertable=false,updatable=false) public Document getDocument() { return document; } And after that indexing worked. For detailed explanation of that case see hibernate annotations documentation: http://www.hibernate.org/hib_docs/annotations/reference/en/html_single/ part 2.2.5.3.2.1. Bidirectional View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925553#3925553 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925553 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user