I'm not able to get this to work and I'm hoping that someone can make my day and let me know that it is possible and perhaps share how to get it to work.
I would like to use a JoinTable with multiple JoinColumns. The JoinTable gives me an error when I have the multiple JoinColumn annotations in the JoinTable. I've also tried using a JoinColumns annotation to group the two together but without any luck. Is this feature just not possible? If I use only a single JoinColumn it maps together but this won't accurately populate the collection. Thanks for any help.
Quote:
unexpected token: @ @ line 130, column 2.
[groovyc] @OneToMany
[groovyc] ^
Code:
@OneToMany
@JoinTable(
name="Project_Properties_Inst_Value",
joinColumns = {
@JoinColumn(name="Attribute_Number"),
@JoinColumn(name="Instance")
},
inverseJoinColumns = {
@JoinColumn(name="Project_Number"),
@JoinColumn(name="Latest_Project_Properties_Instance")
}
)