i am trying to build a simple <script src="https://unpkg.com/vue@2.5.10/dist/vue.min.js"></script>
<div id="app">
<input type="text" v-model="myid" placeholder="My ID" />
<button type="button" @click="click">Submit</button>
</div>
using the Eclipselink Criteria-Api. All available answers here fit the Hibernate-Implementation or NULLS LAST in JPQL. Since "NULLS LAST" works when specifying it in the JPQL-String, i really need the Criteria-solution, because this query is "very dynamic".
I found the class OrderByItem which has related constants, but i can't figure out how this class may be used:
http://www.eclipse.org/eclipselink/api/2.6/org/eclipse/persistence/jpa/jpql/parser/OrderByItem.html
ORDER BY hitCount DESC|ASC NULLS LAST
Thanks in advance!