> Thanks to Matthew Inger and a damn good debugger party through the > internals of Hibernate metadata, we now have the long awaited support > for List, including the infamous implicit many to one with non null FK.
This is great. I've played around and bit and stuck with bidirectional one to many lists. Actually, I didn't really stuck, as I came out with this solution: @OneToMany(cascade=CascadeType.ALL) @IndexColumn(name="targetIndex") @JoinColumn(name="sourceId") public List<Target> getTargets() { return targets; } @ManyToOne // TODO does not work with lists @JoinColumn(name="sourceId") public Source getSource() { return source; } This results in two columns for the foreign key: sourceId and source_id, which is created automatically. Is there a more elegant way to solve this? > I've updated JIRA (HibernateExt / annotations) with all the missing > features. You are *very *welcome to contribute. If this is a bug, I could prepare a test case. ------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 _______________________________________________ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel