I have an entity bean which contains a boolean field. The mapping in the standardjaws.xml file shows the column type to be int2. My table contained several entries where the int value was 1. When those entries were loaded into an entity bean instance via a call to findByPrimaryKey, the container was changing the value from 1 to 0. No calls to the set methods on the bean are being called. My get and set methods take boolean, so it was a simple matter of changing the field type from Boolean to Byte and updating the get and set methods to hard code the byte to boolean conversion. Now the container doesn't change the field when the bean is loaded. Two questions: 1.) is this a known problem with the Boolean type? 2.) Why would the container perform an update as the result of a findByPrimaryKey? Stephen Gevers _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
