This content has been marked as final.
Show 4 replies
-
1. Re: JoinTable on Set of Strings
epbernard Oct 20, 2005 8:15 PM (in response to majohnst)Use the hibernate annotations docs, inverseJoinColumns should not be used for this case.
-
2. Re: JoinTable on Set of Strings
majohnst Oct 20, 2005 9:18 PM (in response to majohnst)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?
-
4. Re: JoinTable on Set of Strings
majohnst Oct 21, 2005 9:50 AM (in response to majohnst)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