You don’t need to map an index in Hibernate mappings. HQL is translated to SQL, and if the DB decides if an index makes sense to be used for the SQL query, it will be used automatically.
vlad
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Hibernate3 force index? | 0 | 911 | March 10, 2020 | |
| Specify index on query | 1 | 670 | July 29, 2018 | |
| How can I make Hibernate ignore my custom index? | 14 | 2261 | August 2, 2022 | |
| Entity Not indexed automatically with JPQL Update | 2 | 800 | March 8, 2019 | |
| Hibernate Tools failing to get index info from Postgres tables | 1 | 3006 | June 20, 2018 |