mysql order by field equivalent in hibernate
<p>How do I accomplish this custom sort by field feature available in MySQL in hibernate?</p>

<pre><code>select * from pet order by field(species, 'cat', 'dog', 'bird');
</code></pre>

<p>For some business reason, I need to enforce a custom ordering. </p>

<p>PS -I am new to hibernate.</p>