I am new to JPA and the concept of Indexing.
I have defined composite index using JPA:
@Table(name = "table_name", indexes = { @Index(name = "my_index", columnList = "id, user_id") })
My question is can I use the index to retrieve data from database using a service.