that did the trick, thanks Gavin!! (mapping file below)
I added a ImageSearchBean.aegis.xml file in the same package as my bean,
marking all attributes as nillable="true" and the error went away. I
don't understand why this would happen in the first place though as the
documentation on the page seems to suggest that the default nillable is
true...? But if that were the case then my error should never have
occured. ah well it's fixed now.
<mappings xmlns="">
<mapping name="ImageSearchBean">
<property name="barcodeNumber" nillable="true"/>
<property name="collection" nillable="true"/>
<property name="collectionId" nillable="true"/>
<property name="copyrightComments" nillable="true"/>
<property name="copyrightCondition" nillable="true"/>
<property name="copyrightOwner" nillable="true"/>
<property name="creatorName" nillable="true"/>
<property name="geoRegion" nillable="true"/>
<property name="geoRegionId" nillable="true"/>
<property name="id" nillable="true"/>
<property name="imageCreator" nillable="true"/>
<property name="imageDescription" nillable="true"/>
<property name="imageLocation" nillable="true"/>
<property name="imageTitle" nillable="true"/>
<property name="imageVisibility" nillable="true"/>
<property name="keyword" nillable="true"/>
<property name="parkId" nillable="true"/>
<property name="parkName" nillable="true"/>
<property name="placeId" nillable="true"/>
<property name="publicFlag" nillable="true"/>
<property name="term" nillable="true"/>
</mapping>
</mappings>
Hogan, Gavin wrote:
You could use an aegis file to mark it as ignore or as nillable. If it
is only used by hibernate and you never want your client to see it then
mark as ignore, otherwise set it to nillable.
http://xfire.codehaus.org/Aegis+Binding
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email