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

@Unique field

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.0.0.M1
    • None
    • WEB MVC
    • None
    • Windows 7, TOMCAT 8, MySQL, Eclipse MARS.

    Description

      Scenario.

      1. Create entity.
      2. Add field with @unique constrain
      3. Create mvc scaffold for it.
      4. Create one entity with some value in that field.
      5. Create second entity with same value.

      Database will throw exception.

      In my opinion in generated method before "if (bindingResult.hasError())" should be some test for duplicates.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kalu Albert Kaluga
            Archiver:
            tmarshall Trevor Marshall

            Dates

              Created:
              Updated:
              Archived: