I have a couple of questions regarding how to deal with @SecondayTable:
1) Is there a way that I'm not seeing, to add two @org.hibernate.annotations.Table(appliesTo = ... ) against multiple secondary tables?
Code:
//-- Cannot do, but just for visual
@org.hibernate.annotations.Table(appliesTo = "TABLE_1", ...)
@org.hibernate.annotations.Table(appliesTo = "TABLE_2", ...)
@SecondaryTables({
@SecondaryTable(name="TABLE_1",...),
@SecondaryTable(name="TABLE_2",...)})
public class MyTable ...
2) Adding an @Where for MyTable - is there any way to use the @Where on the SecondaryTable(s) also?