[jboss-user] [JBoss Seam] - EntityQuery hints map string value

dcastannon do-not-reply at jboss.com
Wed Aug 29 13:56:36 EDT 2007


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#4079293

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079293



More information about the jboss-user mailing list