Aug 30th, 2012, 09:39 AM
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.
Aug 30th, 2012, 02:08 PM
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