My code is very similar to that shown in this question: Hibernate custom schema creation
Although the code is the same, my specific question is different:
How can I force Hibernate to generate additional custom indexes? For instance, PostgreSQL partial indexes which cannot be expressed in annotations?
What I have tried so far:
- Searched google
- Searched SO
- Read the documentation
- Check the Javadocs
The primary reason for not wanting to manually maintain the indexes, is the use of CI/CD with throwaway databases which get rebuilt every time a new environment is initialized.