title: Is it possible to configure the Play Framework's CRUD module to respect @Column(unique=true) annotations?
body: <p>I'm using Play's CRUD module to create a simple set of admin screens.  One of my models is User and I want to enforce a unique constraint on the email field.</p>
  
  <p>The code looks like this:</p>
  
  <pre><code>public class User extends Model {
      @Email
      @Required
      @Column(unique=true)
      public String email;
  </code></pre>
  
  <p>The admin screen displays correctly - when I try to break uniqueness (by saving a user with an already used email) I get this error (in the browser):</p>
  
  <pre><code>Execution exception
  PersistenceException occured : org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
  
  In {module:crud}/app/controllers/CRUD.java (around line 100)
  
  96:
               } catch (TemplateNotFoundException e) {
  
  97:
                   render("CRUD/show.html", type, object);
  
  98:
               }
  
  99:
           }
  
  
  100:
           &lt;b&gt;object._save();&lt;/b&gt;
  
  101:
           flash.success(Messages.get("crud.saved", type.modelName));
  
  102:
           if (params.get("_save") != null) {
  
  103:
               redirect(request.controller + ".list");
  
  104:
           }
  
  105:
           redirect(request.controller + ".show", object._key());
  
  106:
       }
  </code></pre>
  
  <p>Are there any tweaks I can make to use the CRUD module AND column uniqueness annotations?</p>