Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » toplink setHint("toplink.refresh", "true" does not work(data table does not refresh in view after a jpa save to database)
toplink setHint("toplink.refresh", "true" does not work [message #884822] Mon, 11 June 2012 18:41 Go to next message
Eclipse UserFriend
Query query = em.createNamedQuery("getAllDataFromTable").setHint("toplink.refresh", "true");; in jpa does not refresh the table with new data.

We are using jdeveloper 11.1.2.1, adf, jpa 2.0.
We are saving changed data to the database in a different page and returning to a a table view after the save. But the table data still has old data.
We are using a table and a view. we are saving to the table and the view gets updated by a trigger. We checked that the table and the view and they both have the updated data. What is wrong with the refresh, why does it not work?

It is urgent, we need to go into production. Please help
Re: toplink setHint("toplink.refresh", "true" does not work [message #885164 is a reply to message #884822] Tue, 12 June 2012 10:51 Go to previous messageGo to next message
Eclipse UserFriend
Are you using EclipseLink? What version of EclipseLink?

For EclipseLink, the hint should be, "eclipselink.refresh".
Re: toplink setHint("toplink.refresh", "true" does not work [message #885384 is a reply to message #885164] Tue, 12 June 2012 18:40 Go to previous messageGo to next message
Eclipse UserFriend
It is toplink that comes with the jdeveloper version 11.1.2.1. Thanks very much for your response. Nothing we try is working. Please help
Re: toplink setHint("toplink.refresh", "true" does not work [message #889707 is a reply to message #885384] Tue, 19 June 2012 09:51 Go to previous message
Eclipse UserFriend
Did you try, "eclipselink.refresh"?

In general for named queries you should set hints where you define the named query, avoid modifying named queries dynamically.

TopLink/EclipseLink will print the version in the log when you connect, what version is printed?
Previous Topic:EclipseLink can't login on startup project in Eclipse [solved]
Next Topic:Bean validator implementation in eclipselink
Goto Forum:
  


Current Time: Sat Jul 12 22:56:04 EDT 2025

Powered by FUDForum. Page generated in 4.89564 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top