Missing Hint /*+ FIRST_ROWS */ On Pagination Queries When Target DB Is "Oracle11" In Persistence.xml
Last updated on AUGUST 19, 2015
Applies to:Oracle TopLink - Version 18.104.22.168.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?
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms