I'm basically referring to this:
Is the @UniqueConstraint annotation a DDL generation feature only, or more specifically, does it have any effect at runtime, e.g. SQL generation?
I'm basically referring to this:
Is the @UniqueConstraint annotation a DDL generation feature only, or more specifically, does it have any effect at runtime, e.g. SQL generation?
Most JPA implementations will use it for DDL generation as you say, but at runtime will simply defer unique checking to the datastore (which will throw an exception on non uniqueness).