Hibernate provides a mechanism to define multi column indexes via the Table. Is there a way to specify this is an ORM agnostic fashion via JPA or JPA2 (e.g. using the javax.persistence.* APIs)
+1
A:
No, as hinted in my answer to your previous question, there is no standardized way, you have to use provider extensions for that (when they exist).
Pascal Thivent
2010-09-20 10:43:12
just curious to know, as per your earlier suggestion we are using hibernate annotations for this purpose. It makes sense to support this, when JPA already has support for single column Index annotation. Just my 2 cents
2010-09-20 10:48:08
@user339108 I personally agree and I'd like JPA to support this too. Maybe in a future version.
Pascal Thivent
2010-09-20 11:42:00
@user339108 Can you provide an example to your statement "JPA already has support for single column Index annotation". I couldn't find any annotation allowing this other then the @Index annotation provided by Hibernate.
jaxvy
2010-10-28 17:54:25