How can I define a specific schema for my Hibernate Envers Audit Join Tables in JBoss EAP?

Solution Verified - Updated -

Issue

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?

Environment

Red Hat JBoss Enterprise Application Platform (EAP) all versions

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.