My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 40: Cache hints support
1 person starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  ----
Closed:  May 2010


 
Reported by jonathan...@gmail.com, May 14, 2010
Before using liquidform I used hints for my queries to set not to use
cache. Is there any way to use this feature with Liquidforms ?

My previous code :

String sql = " select obj from Dcupo obj";
Query consulta = em.createQuery(sql);
consulta.setHint("toplink.refresh", "true");
List<Dcupo> lista = (List<Dcupo>) consulta.getResultList();

Thank you.
May 15, 2010
Project Member #1 eric.bot...@gmail.com
As mentionned in the documentation, LIQUidFORM will only help you with the creation of the "sql" String part.

What it helps you create is a plain java.lang.String, the "sql" variable in your example.
Any other interaction with the Hibernate/Toplink/JPA Query API is left untouched, so you can still use q.setHint() 
as you see fit.

Hope this helps,
Status: WontFix

Powered by Google Project Hosting