Hibernate lets you add a @Index to entities/tables for this.
http://www.hibernate.org/hib_docs/annotations/reference/en/html_single/#d0e2305

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
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to