Use the hibernate annotations docs, inverseJoinColumns should not be used for this case.
I am using the method described in the hibernate annotations docs under the "Unidirectional with join table" heading. The docs do show another example using the @MapKey property, but how can you define the sql definition using the MapKey?
Thanks, that worked with one change. The docs say to use
@OneToMany @JoinTable @Column
I am using Eclipse with the JBoss plugins, and I could not get that to compile. I had to change the order to:
@OneToMany @Column @JoinTable