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 10.1.3.1 to 10.1.3.3 [Release AS10gR3]
Information in this document applies to any platform.
This problem can occur on any platform.

Symptoms

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 10.1.3.3.0 V2 Build 41

 

Cause

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
Symptoms
Cause
Solution
References

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