PDA

View Full Version : change a field in rsvp.java



elukaweski
Jun 23rd, 2009, 05:31 PM
Hi:
Just a simple newbie question, if I might. In following through the article to set up the RSVP application, I set a field, in the rsvp.java domain object to "mail" instead of "email".
How would one change the name to "email" and have it effect all the other artifacts. Just re-factor in STS?

Thanks
Edwin

Stefan Schmidt
Jun 23rd, 2009, 06:11 PM
Hi Edwin,

Yes the best way to change this is to use your favourite development environment and change the field name. Make sure you have Roo running in the background while doing this (or run Roo after you are done) so it can refactor all related artifacts for you. This would include the toString method, accessors and mutators and a number of other things.

Hope this helps.

-Stefan

elukaweski
Jun 24th, 2009, 08:47 AM
Stefan:
Thank you...an obvious response to an obvious question...just had to ask. Tried it out (with and without Roo running) and it works seamlessly.

Great product

Edwin

Stefan Schmidt
Jun 24th, 2009, 05:48 PM
Edwin,

I am glad to hear it works for you!

-Stefan

Fireball
Dec 1st, 2009, 04:00 AM
Does this also affect controllers?