How can i set hibernate query hints using EntityQuery if the map values are strings?
For example:
hints.put("org.hibernate.cacheMode", CacheMode.REFRESH.toString() );
give
Caused by: java.lang.IllegalArgumentException: Value for hint
Hibernate setHint of QueryImpl expects an CacheMode Object:
query.setCacheMode( (CacheMode) value );
Any reason EntityQuery hints map is <String, String> and not <String, Object>
?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079293#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...