Announcement Announcement Module
Collapse
No announcement yet.
How to remove effect of 'Repository jpa --interface' command Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to remove effect of 'Repository jpa --interface' command

    Hi,

    I entered the 'repository jpa --interface' command during the initial setup of a project and as you would expect has generated a <entity>Repository.* files. Can you tell me what is the best was to remove this interface as I have tried deleting the above files but I am getting errors?

    Thanks

    Paul

  • #2
    You want to just remove the code?

    Remove:

    * the repository interface
    * if you wrote tests, any of the test classes

    Start up the Roo shell and it will delete any Aspect-J files.

    If you're running this from STS, you won't see the Aspect-J files (they end in .aj) by default. They are there if you browse with your OS file browser. They live alongside the interface/class and are generated by annotations like @RooJpaRepository and the like. You can click the Project Explorer's disclosure icon (the down arrow on the right) and select Filter, UNCHECKING Filter Roo Generated AspectJ ITDs. Then the ITD files (.aj) will show up, and you can see them magically disappear when you remove the class that generated them.

    Ken

    Comment


    • #3
      Thanks for the advice Ken - i hadn't deleted the .aj files.

      Paul

      Comment

      Working...
      X