Hi, I need to store the values in some Strings as uppercase, I dont know if hibernate has some feature for that.. what I tried, for simpleness (not touching the interface or the DAOs, was in my POJO, on the set method, I assigned the value as uppercase to my property:
Code:
public void setProp(String prop) {
this.prop = prop.toUppercase();
}
The mapping file is as follows:
Code:
<property
name="prop"
type="java.lang.String"
update="true"
insert="true"
access="property"
column="PROP"
length="1"
/>
Hibernate version:2.1.7cFull stack trace of any exception that occurs:Code:
2004-11-25 10:06:12,703 INFO [net.sf.hibernate.util.ReflectHelper] reflection optimizer disabled for: package.AClass, BulkBeanException: null (property setProp)
If I remove the ".toUpperCase()" it works fine.. any ideas? thanks!
PD. Im using jboss 3.2.6 and the cglib-2.0.2.jar included in the hibernate 2.1.7c zip.