Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2532

Update DoD classes so that ConstraintViolationExceptions are re-thrown with a more descriptive message to aid debug.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.1.4.RELEASE
    • Fix Version/s: 1.1.5.RELEASE
    • Component/s: TESTING
    • Labels:
      None
    • Environment:
      All.

      Description

      The default message for ConstraintViolationExceptions from hibernate may not be useful for debug purposes. This improvement request is to catch ConstraintViolationException in Dod objects where roo may be likely to generate constraint violations, add a more descriptive message, and then re-throw a RuntimeException with the updated message. The new exception should be chained to the ConstraintViolationException. A patch will be attached.

        Attachments

          Activity

            People

            Assignee:
            stewarta Alan Stewart
            Reporter:
            robertgass Robert Gass
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: