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 Bug
    • Status: Resolved
    • Priority: Minor 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

        Activity

        Hide
        Alan Stewart added a comment -

        Resolved for String fields in Git ID 10540eab6a7fdcd17a667fdb8922a7fc2f099cb3

        Show
        Alan Stewart added a comment - Resolved for String fields in Git ID 10540eab6a7fdcd17a667fdb8922a7fc2f099cb3
        Hide
        Alan Stewart added a comment -

        Refactor in Git ID 2fe6457949ee7449f140ea6f8390e34fd89a958c

        Show
        Alan Stewart added a comment - Refactor in Git ID 2fe6457949ee7449f140ea6f8390e34fd89a958c

          People

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

            Dates

            • Created:
              Updated:
              Resolved: