Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
Missing name Mising name is currently offline Missing name Mising name
Messages: 11
Registered: August 2011
Junior Member
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
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Are you using EclipseLink? What version of EclipseLink?

For EclipseLink, the hint should be, "eclipselink.refresh".


James : Wiki : Book : Blog : Twitter
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
Missing name Mising name is currently offline Missing name Mising name
Messages: 11
Registered: August 2011
Junior Member
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
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

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?


James : Wiki : Book : Blog : Twitter
Previous Topic:EclipseLink can't login on startup project in Eclipse [solved]
Next Topic:Bean validator implementation in eclipselink
Goto Forum:
  


Current Time: Wed Jul 30 13:19:19 EDT 2014

Powered by FUDForum. Page generated in 0.01733 seconds