• Post Reply Bookmark Topic Watch Topic
  • New Topic

modification is needed for chapter 7's queryHintsExample  RSS feed

 
Ranch Hand
Posts: 1686
12
  • 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 e.id = ?1, query hint eclipselink.cache-usage has illegal value 0.
at org.eclipse.persistence.internal.jpa.QueryHintsHandler$Hint.apply(QueryHintsHandler.java:362)
at org.eclipse.persistence.internal.jpa.QueryHintsHandler$Hint.apply(QueryHintsHandler.java:345) ...


 
Live ordinary life in an extraordinary way. Details embedded in this tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!