-
1. @AuditJoinTable usage?
adamw Apr 7, 2011 2:07 AM (in response to code6226)And you're annotating the children field?
Adam
-
2. Re: @AuditJoinTable usage?
code6226 Apr 7, 2011 8:24 AM (in response to adamw)I've tried doing the following just to see if a "a_a_aud" table would appear:
public abstract class Fruit<T extends...> { private T parent; @AuditJoinTable(name="a_a_aud") private List<T> children; ... } public class Apple extends Fruit<Apple>{ ... }
Clearly this is not the correct solution since all subclasses of Fruit would now have the same audit join table name, despite having different table and audit table names.
But still, there was no "a_a_aud" table, and the "apple_apple_aud" table remained.
I also tried to be more explicit by redeclaring the parent and children variables inside Apple, and annotating children with the same annotation there, to no effect.
Finally I tried using @AuditJoinTable(name="_aud", inverseJoinColumns = @JoinColumn(name="parent")) instead in both scenarios, also to no effect.
-
3. Re: @AuditJoinTable usage?
adamw Apr 15, 2011 5:54 AM (in response to code6226)Hmm unfortunately there's no way to override this - please create a feature request in JIRA.
Adam