Announcement Announcement Module
No announcement yet.
Delete, Modify field, delete entity Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Delete, Modify field, delete entity


    I think about having a command to delete field and entity from Roo shell. Also update field in an entity, is this possible ?

  • #2
    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.



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