I need to cast a value by an unknown class name. Here is an example of what I need to do :
Filter filter = session.getFilter(aName);
for (Object key :filter.getFilterDefinition().getParameterTypes().keySet() ){
filter.setParameter("param1",filter.getFilterDefinition().getParameterType(key.toString()).getReturnedClass())
value )
}
So as you can see, I need to cast with the parameter type of the map key
Is it possible? Othewise, how can I do such a cast.
thanks