I have created the following entity bean, and specified two columns as being unique. Now my problem is that the table is created without the unique constraint, and no errors
I also faced the same issue, but adding unique-key="UK1_test" in the mapping file worked fine.
unique-key="UK1_test"
create with unique-key="UK1_test" unique="true" in the mapping file created alter table employee add constraint UK1_test unique (addrId)
create
unique-key="UK1_test" unique="true"
alter table employee add constraint UK1_test unique (addrId)