Hey everybody,
I modified the value object task so that I can now generate value objects that are immutable (only getter methods). The problem is now in the generated .....CMP.... file's getValueObject() method. The generated method uses the value objects setter methods for parameter passing, something like...
public CompanyValue getCompanyValue() { CompanyValue companyValue = new CompanyValue(); try { companyValue.setName( getName() ); companyValue.setCustomerId( getCustomerId() ); .......
I have to modify this in a way that the value objects constructor is used instead of the setter methods, so it should look like this:
CompanyValue companyValue = new CompanyValue( getName(), getCustomerId(), ....);
Does anyone know how to do this in xdt? How do I ensure that the getter methods are listed in the order of the constructor arguments??
Thanks for any help Maik
-- Simply Efficient - IT Services, Consulting, Training "We Keep Our Promises" Vancouver, BC Phone: +1 604.315.8446 Fax : +1 604.731.1147 http://www.simplyefficient.ca
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user