Use COLUMN
to access to unmapped columns in an object's table.
You can use COLUMN
to access foreign key columns, inheritance discriminators, or primitive columns (such as ROWID
). You can also use COLUMN
in JPQL fragments inside the @AdditionalCriteria
annotation.
Example 3-2 shows how to use the COLUMN
EQL.
In Example 3-3, uses COLUMN
EQL access a primitive column (ROWID
).
Example 3-3 Using COLUMN with a Primitive Column
SELECT e FROM Employee e WHERE COLUMN('ROWID', e) = :id
For more information, see: