How are you mapping the dynamic entity? Are you using DDL generation?
If you are mapping the entity through the orm.xml, then you can put an <index> in the orm.xml.
If you are mapping through code, then I believe you will need to use the schema framework directly in your code. (org.eclipse.tools.schemaframework)