Results 1 to 3 of 3

Thread: How to remove effect of 'Repository jpa --interface' command

  1. #1
    Join Date
    Oct 2012
    Posts
    4

    Default 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. #2
    Join Date
    Jun 2008
    Location
    Philadelphia, PA, USA
    Posts
    212

    Default

    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
    Ken Rimple
    Chariot Solutions
    email: krimple@chariotsolutions.com
    work: www.chariotsolutions.com/education
    personal: www.rimple.com

    Author: Spring Roo in Action (Manning)
    MEAP Site: manning.com/rimple

  3. #3
    Join Date
    Oct 2012
    Posts
    4

    Default

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

    Paul

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
  •