Affects Version/s: 2.0.0.M1
Fix Version/s: None
Component/s: WEB MVC
Environment:Windows 7, TOMCAT 8, MySQL, Eclipse MARS.
- 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.