Use TABLE
to access unmapped tables.
With the TABLE
function, you use join, collection, history, auditing, or system tables in a JPQL query.
Example 3-13 shows how to use an audit table (unmapped) within a SELECT
statement.
SELECT e, a.LAST_UPDATE_USER FROM Employee e, TABLE('AUDIT') a WHERE a.TABLE = 'EMPLOYEE' AND a.ROWID = COLUMN('ROWID', e)
For more information, see: