Possible Duplicate:
Specifying an index (non unique key) using JPA
Is there a way to define index on enitity column, to improve searches performance? I saw that hibernate gives @Index and @IndexColumn, but I am looking for JPA way to do it.
thanks
Here is an example of my entity, I need to index a name column
@Entity
@Table(name = "MY_TABLE")
public class MyEntity {
private long id;
private String name;
private String sourceInfo;
...