Results 1 to 2 of 2

Thread: How do I get my Roo app to "convertJpaAccessExceptionIfPossible" using the Aspect

  1. #1
    Join Date
    May 2011
    Posts
    3

    Default How do I get my Roo app to "convertJpaAccessExceptionIfPossible" using the Aspect

    I am using Roo's ActiveRecord rather than a Repository and I can't figure out how to get the Aspect that converts JPA Exceptions to Spring Exceptions to work. I have seen multiple JIRA issues but I just can't manage to put it together.

    ROO-182: appears to have created a roo command for adding an .aj file but this appears to have been done away with by
    SPR-6275: appears the intent is now to use spring-aspects but I can't find how to get these to pay attention to my ActiveRecord.aj files since they are not @Repository.

  2. #2
    Join Date
    May 2011
    Posts
    3

    Default

    Nevermind, it appears the Aspect was running the whole time. I just assumed it wasn't since it wasn't translating to what I thought would be the appropriate Spring Exception.

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
  •