In my Hibernate project, I add indices like so:
@Entity
@Table(name=\"MY_TABLE\", indexes = {
@Index(name = \"idx_user_name\", columnList = \"name\"),
It is not possible to use a function based index in JPA 2.1.
JPA provides means to abstract from a specific database. Every database has its own implementation of FBI which can vary greatly. Hence, it is not part of the standard.
I peeked into the Hibernate code to see whether there might be an undocumented feature for a FBI. Unfortunately, only column based indexes are supported.
You should run a SQL script on deployment to create your index.