Can an INITIALLY DEFERRED constraint be defined using a Hibernate annotation?
I have a table with a column that has a UNIQUE constraint. I want the constraint checking to be deferred to commit time. If I create it using Postgres SQL like this (many columns omitted): CREATE TABLE instrument ( id bigint NOT NULL, name character varying(255) NOT NULL, CONSTRAINT instrument_pkey PRIMARY KEY (id), CONSTRAINT instrument_name_key UNIQUE (name) DEFERRABLE INITIALLY DEFERRED ) Then everything works as expected. If I define it to Hibernate like this: import java.io.Serializable; import javax.persistence.*; import org.hibernate.annotations.ForeignKey; @Entity @Table(name=