I've been using @AuditTable to define my audit tables schema. In this specific case, I'm mapping a @OneToMany with a @JoinTable as below:
@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, orphanRemoval = true) @JoinTable(name = "MY_SCHEMA.MyTable", joinColumns = @JoinColumn(name = "MY_FK"), inverseJoinColumns = @JoinColumn(name = "MY_INVERSE_FK")) private List<Myentity> listaEmails = new ArrayList<MyEntity>();
How can I define a schema for that relationship?
Red Hat JBoss Enterprise Application Platform (EAP) all versions
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.