This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

modification is needed for chapter 7's queryHintsExample  RSS feed

Ranch Hand
Posts: 1709
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In chapter 7's queryHintsExample

The second parameter of setHint needs to be modified into:

With ObjectLevelReadQuery.DoNotCheckCache, I got an error:

Caused by: java.lang.IllegalArgumentException: Query SELECT e FROM Employee e WHERE = ?1, query hint eclipselink.cache-usage has illegal value 0.
at org.eclipse.persistence.internal.jpa.QueryHintsHandler$Hint.apply(
at org.eclipse.persistence.internal.jpa.QueryHintsHandler$Hint.apply( ...

This cake looks terrible, but it tastes great! Now take a bite out of this tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!