I know about the @OverrideAnnotation to set a new column name in JPA, but how do you do this in xml? I see an <attribute-override> mentioned in viewtopic.php?t=982330, but can't find it in the DTD.
My problem is that I have a join table which joins object A to object C, the join table containing a property of object C; and also a join table which joins object B to object C, which contains the same property of object C, different column name. I need to 1) have it look for the property in the join table, not in the table defined for object C, and 2) look for the property in 2 different join tables.
Lost in one-to-many's, join's, join-table's, etc....
|