So it looks like the VO setter created in the xdoclet-generated CMP
file doesnt check for dirty fields. The code generated is of the form:

   public void setYourOwnVO( YourOwnVO valueHolder )
   {
      setFoo( valueHolder.getFoo() );
      setBar( valueHolder.getBar() );
   }

The setter should check to make sure a field in the VO has been set
before attempting to use it on the entity. It seems the code should
look something like:

   public void setYourOwnVO( YourOwnVO valueHolder )
   {
      if( valueHolder.fooHasBeenSet() )
         setFoo( valueHolder.getFoo() );
      if( valueHolder.barHasBeenSet() )
         setBar( valueHolder.getBar() );
   }

Is the current coding intentional? Just checking since its been this
way for quite a while and no one has complained. -cc.


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to