Missing Hint /*+ FIRST_ROWS */ On Pagination Queries When Target DB Is "Oracle11" In Persistence.xml
(Doc ID 2043633.1)
Last updated on SEPTEMBER 03, 2018
Applies to:Oracle TopLink - Version 22.214.171.124.0 and later
Information in this document applies to any platform.
When following the "FirstResult/MaxRows" sample for pagination on JPA, available here. It is needed to set the parameter "eclipselink.target-database"
in file "persistence.xml" to a supported database. When this parameter is set to "Oracle" the query generated for pagination includes the SQL hint /* +FIRST_ROWS */ as in the example.
When the parameter is set to "Oracle11" (DB is Oracle 11g), the SQL hint is not included.
How to get the hint using Oracle11 as target database?
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document