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

Integration tests fail when column is unique and field length is greater than column length

    Details

    • Type: Bug
    • 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

      Description

      When a field, for example, is called "registration" size restriction and unique constraints are placed on field, as like here:

          @NotNull
          @Column(unique = true)
          @Size(min = 8, max = 8)
          private String registration;
      

      unit tests will fail as the field initializer is truncated, but is not unique in all cases

        Attachments

          Activity

            People

            • Assignee:
              stewarta Alan Stewart
              Reporter:
              stewarta Alan Stewart
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: