Announcement Announcement Module
Collapse
No announcement yet.
change a field in rsvp.java Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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

      Comment


      • #4
        Edwin,

        I am glad to hear it works for you!

        -Stefan

        Comment


        • #5
          Does this also affect controllers?

          Comment

          Working...
          X