IIRC the unique-attribute is used for table generation and adds a constraint to that column. If you created the table yourself and didn't add a constraint, the behaviour is correct - Hibernate doesn't check constraint violations at runtime.
posted 9 years ago
Thanks for the explanation. It works fine now
SCJP 1.5, SCWCD 1.4.
Hanging between Web Services and EJB
It is no measure of health to be well adjusted to a profoundly sick society. -Krishnamurti Tiny ad: