title: JPA: @OneToOne creates an implicit unique constraint with a randomly generated name. Is there any way to spcify that name in code using annotations?
body: <p>In a Java class, I have this property</p>
  
  <pre><code>@OneToOne(optional = false, fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval = true)
  private MyPropertyClass myProperty;
  </code></pre>
  
  <p>which not only creates a foreign key constraint, but a unique constraint also. This is the Hibernate DDL Schema output:</p>
  
  <pre><code>Hibernate: create table [...]
  Hibernate: alter table [...] add constraint UK_nk1hqjkd7ln1f9a2pju1yy8ay  unique (myProperty)
  </code></pre>
  
  <p>Is there <em>any</em> way to specify the name of the unique constraint?</p>