Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.0.0.M1
-
None
-
None
-
Windows 7, TOMCAT 8, MySQL, Eclipse MARS.
Description
Scenario.
- Create entity.
- Add field with @unique constrain
- Create mvc scaffold for it.
- Create one entity with some value in that field.
- 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.