Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 416 Bytes

Index.md

File metadata and controls

21 lines (16 loc) · 416 Bytes

Index Annotation

Indicates that the annotated entity should have an index created on specified columns.

Example usage:

@Entity
@Table(indexes = {@Index(name = "phone_idx", columnList = "companyNumber")})
public class Phone {
    @Id
    @GeneratedValue
    private Long id;
    
    private String companyNumber;
}

See Also