Hibernate lets you add a @Index to entities/tables for this.

Since JPA is creating, and maintaining the schema it is nice to keep
that config all in one place.

I would say that for serious tuning you may need to do this at the
database level, but for simple things like indexes, constraints, and
data validation much of this should be provided at the persistence
definition level, and in the application definition (and applied where
possible to the database).

On Mon, Mar 30, 2009 at 11:19 PM, Daniel López <d.lo...@uib.es> wrote:
> Isn't that something one would do at the database level?

resin-interest mailing list

Reply via email to