Hi.
I am newbie in Hibernate but we cant get it to work as far as use_reflection_optimizer is concerned. We use a lot of primitive data types as fields and we would prefer not to change them by java wrapper objects. I am now trying to disable the hibernate.cglib.use_reflection_optimizer property with no success. We looked at the source code and (not having to much knowledge about the source code) it seems to me that this could possibly be a bug in this class:
net.sf.hibernate.persister.AbstractEntityPersister line 771:
optimizer = !foundCustomAccessor && Environment.useReflectionOptimizer() ?
ReflectHelper.getBulkBean(mappedClass, getterNames, setterNames, types, fastClass) :
null;
foundCustomAccessor variable is true because there is setter for the property which is used. Shouldn't it be:
optimizer = foundCustomAccessor && Environment.useReflectionOptimizer() ?
ReflectHelper.getBulkBean(mappedClass, getterNames, setterNames, types, fastClass) :
null;
instead.
Sorry if I am wrong and hope to get an answer.
Thanks in advance.[/i]
|