Jun 23rd, 2009, 05:31 PM
change a field in rsvp.java
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?
Jun 23rd, 2009, 06:11 PM
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.
Jun 24th, 2009, 08:47 AM
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.
Jun 24th, 2009, 05:48 PM
I am glad to hear it works for you!
Dec 1st, 2009, 04:00 AM
Does this also affect controllers?
Tags for this Thread