public static Map<String, PropertyIndex> getIndexesOnEmbeddable(Class<?> entityClazz)
    {
        Map<String, PropertyIndex> pis = new HashMap<String, PropertyIndex>();
       
        IndexCollection indexes = entityClazz.getAnnotation(IndexCollection.class);
        List<String> columnsNameToBeIndexed = null;
        Map<String, com.impetus.kundera.index.Index> columnsToBeIndexed = null;
        if (null != indexes)
        {
            columnsToBeIndexed = new HashMap<String, com.impetus.kundera.index.Index>();
            if (indexes.columns() != null && indexes.columns().length != 0)
            {
                for (com.impetus.kundera.index.Index indexedColumn : indexes.columns())
                {
                    columnsToBeIndexed.put(indexedColumn.name(), indexedColumn);
                }
            }
        }
       
        getPropertyIndexes(entityClazz, pis, columnsNameToBeIndexed, columnsToBeIndexed);
        return pis;
    }
public static Map < String , PropertyIndex > getIndexesOnEmbeddable ( Class < ? > entityClazz ) { Map < String , PropertyIndex > pis = new HashMap < String , PropertyIndex > ( ) ; IndexCollection indexes = entityClazz . getAnnotation ( IndexCollection . class ) ; List < String > columnsNameToBeIndexed = null ; Map < String , com . impetus . kundera . index . Index > columnsToBeIndexed = null ; if ( null != indexes ) { columnsToBeIndexed = new HashMap < String , com . impetus . kundera . index . Index > ( ) ; if ( indexes . columns ( ) != null && indexes . columns ( ) . length != 0 ) { for ( com . impetus . kundera . index . Index indexedColumn : indexes . columns ( ) ) { columnsToBeIndexed . put ( indexedColumn . name ( ) , indexedColumn ) ; } } } getPropertyIndexes ( entityClazz , pis , columnsNameToBeIndexed , columnsToBeIndexed ) ; return pis ; }
Returns list of indexed columns on {@code @Embeddable} entity

@param entityMetadata
entity metadata
@return list of indexed columns