Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Anna on February 25, 2002, 07:16:31 am

Title: Code generation / getter and setter
Post by: Anna on February 25, 2002, 07:16:31 am
Hello

Thanks for the great program :)

My question is, is there a way to make the code generator generate java getter and setter methods for all the attributes in the class ?

TIA
Title: Re: Code generation / getter and setter
Post by: gsparks on February 25, 2002, 02:57:37 pm
Hi,

I think the simplest solution would be an option to automatically generate a property interface (get/set in Java) in the default code gen language when a new attribute is added. This would accept the default name etc. and create stereotyped operations.

Let me know if this would help,

Geoff Sparks