This has been a known issue for a while, but it hasn't seem to gotten any attention. Personally I always fix this bug in each new release before I can use xdoclet.
Can anyone in the know comment on if this is actually a bug, and when it might be able to be fixed.
Thanks, -- Mike
On Nov 12, 2004, at 4:56 PM, Craig Crutcher wrote:
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
: mike moulton : meltmedia : 1429 north 1st street : phoenix az 85004 : : [EMAIL PROTECTED] : mmoulton66 | aim : 602.340.9440 | ofc : 602.432.2568 | cel : 602.340.1003 | fax : : meltmedia.com
------------------------------------------------------- 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