I'm sure this has been covered before, but it's hard to search the
mailing list archives for a word as generic as "index".
I currently see no way to add an index for a column provided by a
@MappedSuperclass (the @Table annotation cannot be used with
@MappedSuperclass). Is this correct? And if so, what is the reason
behind this restriction? Is there a way to specify indexes in a
superclass without resorting to using @Entity with an inheritance
strategy? MappedSuperclass lets you have your cake and eat it, too--it
basically emulates "table per class" inheritance while you can still
set the strategy to something else.
Thanks,
Alvin