Results 1 to 5 of 5

Thread: change a field in rsvp.java

  1. #1
    Join Date
    Aug 2007
    Location
    Toronto
    Posts
    66

    Default change a field in rsvp.java

    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

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    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

  3. #3
    Join Date
    Aug 2007
    Location
    Toronto
    Posts
    66

    Default

    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

  4. #4
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    Edwin,

    I am glad to hear it works for you!

    -Stefan

  5. #5
    Join Date
    Oct 2009
    Location
    Munich, Germany
    Posts
    103

    Default

    Does this also affect controllers?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •