I want to create a hibernate query using hql or criteria to get all permutations of a word, for the word elepahant
i want to get:
- eliphant
- ilephant
- iliphant
- elefant
at first i assumed that "%" + "elepahant" + "%"
could do the work but in fact it only returns any word that starts with any letter and ends with any letter and containing elephant
in-between, but i want to get all the word reseambles like the example above, so what are the possible ways to do that?