Given two fields in a table I can create an index that encompases both as follows:
@org.hibernate.annotations.Index(name = "IDX_REPORTID_RECNO")
private Integer reportId;
@org.hibernate.annotations.Index(name = "IDX_REPORTID_RECNO")
private Integer recNo;
and I can create indexes on each column individually
@org.hibernate.annotations.Index(name = "IDX_REPORTID")
private Integer reportId;
@org.hibernate.annotations.Index(name = "IDX_RECNO")
private Integer recNo;
But it doesnt let me do both, this doesn't seem to be allowed
@org.hibernate.annotations.Index(name = "IDX_REPORTID_RECNO")
@org.hibernate.annotations.Index(name = "IDX_REPORTID")
private Integer reportId;
@org.hibernate.annotations.Index(name = "IDX_REPORTID_RECNO")
@org.hibernate.annotations.Index(name = "IDX_RECNO")
private Integer recNo;
How can I do this ?