My Oracle Support Banner

TopLink Essentials - setHint Refresh Does Not Refresh Hierarchy (Doc ID 756189.1)

Last updated on MAY 25, 2021

Applies to:

Oracle TopLink - Version to [Release AS10gR3]
Information in this document applies to any platform.
This problem can occur on any platform.


When working with EJB persistence entities within a TopLink Essentials application, those entities that are found by a primary key using 'em.find', can be refreshed simply by using 'em.refresh'. However suppose there are named queries for which you would like to refresh all entities in the hierarchy. For example a 'createNamedQuery' to return a results list:

List<ReplicationQueue> replicationQueues =
em.createNamedQuery("ReplicationQueue.findAll").setHint("toplink.refresh", "true").getResultList();

However, even using the setHint 'toplink.refresh', Toplink Essentials does not refresh the other entities in the hierarchy. This fails on the latest TopLink Essentials 10g release:

TopLink Essentials V2 Build 41



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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.