Results 1 to 3 of 3

Thread: Delete, Modify field, delete entity

  1. #1
    Join Date
    Aug 2007
    Location
    Egypt
    Posts
    5

    Default Delete, Modify field, delete entity

    Hi,

    I think about having a command to delete field and entity from Roo shell. Also update field in an entity, is this possible ?
    Ahmed Hashim
    Egyptian JUG leader
    Sun Java Champion

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

    Default

    This is not possible from the Roo shell, but you can do it directly in your IDE or even from your normal shell. Just delete the .java source and if the Roo shell is running in the background it will take care of deleting all related .aj artifacts.

    Same for changing or deleting fields. Just do it in your code and Roo will adjust all related artifacts accordingly (.aj, jspx, etc). Try it out for fun in a dummy project and you will see it working.

    HTH
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

  3. #3
    Join Date
    Mar 2011
    Posts
    10

    Default

    So would it be a good policy to save copies of log.roo? Then when an entity or class needed to be modified, modify the script, delete the original class, and then execute the roo script to recreate the class in it's new version?

Posting Permissions

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