UniqueConstraint « Annotation « JPA Q&A

1. Why does Hibernate throw exception "java.lang.NoSuchMethodError: javax.persistence.UniqueConstraint.name()"?    stackoverflow.com

Why does the UniqueConstraint annotation in the following Hibernate mapping declaration cause the exception java.lang.NoSuchMethodError: javax.persistence.UniqueConstraint.name() (see below for stack trace)? Note that when I remove the UniqueConstraint annotation, Hibernate ...

2. Hibernate Annotations - Case Insensitive UniqueConstraint    stackoverflow.com

I have an entity annotated with the following:

public class Component extends Model {
Is it possible to make the UniqueConstraint case insensitive? We are using PostgreSQL. Thanks in advance Rich ...