You can create a custom FieldHandler which does basically nothing in the setValue method and simply returns null in the getValue method.
Then simply specify the handler in the mapping file: <field name="myVirtualField" type="java.lang.Object" handler="com.acme.DoNothingHandler"/> --Keith > Sourabh wrote: > > Suppose in my mapping file i mapped 4 different attributes for a > class.But my java file has only 3 attributes in it .one is missing. > Now when i apply mapping to create a java object from this class , i > get an exception - "....the method...accepting/returning object of > type...was not found" . > > How can we create a java object which has less > attributes than specified in the mapping file? > > thanx in advance, > > sourabh ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev