Letractively / mandubian-play-crud-siena

Automatically exported from code.google.com/p/mandubian-play-crud-siena
0 stars 0 forks source link

Add a trigger on @CrudUnique that can be actioned from controller for examle #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The @CrudUnique provides an external way to add a unique constraint 
verification on a Siena Entity.
But this annotation performs DB requests that can consume a lot of resources 
when Play validation is called.
We want to provide a way to the user to trigger this annotation when it is 
required or not. For example, in the CRUD controller, this is really useful. In 
a creation/update action also but somewhere else it might be a performance 
bottleneck.

Original issue reported on code.google.com by pascal.v...@gmail.com on 17 Dec 2010 at 7:37