title: How to use JPA @Column(unique = true) in a multi-tenant environment?
body: <p>I want to convert my application to support multi-tenancy using shared tables (i.e. every table gets a tenant id). Obviously, I would not be able to use <code>@Column(unique = true)</code> any more, because it would enforce uniqueness across all tenants, which I don't want.</p>
  
  <p>I'm using Glassfish 3.1.1 with EclipseLink. Is there a way make <code>@Column(unique = true)</code> force uniqueness per tenant (rather than per table). Or do I have to enforce this in the business logic?</p>