Announcement Announcement Module
Collapse
No announcement yet.
How do I get my Roo app to "convertJpaAccessExceptionIfPossible" using the Aspect Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    Comment

    Working...
    X