Expression<Integer> index()
Create an expression that corresponds to the index of the object in the referenced association or element collection. This method must only be invoked upon an object that represents an association or element collection for which an order column has been defined.
- Return:
- expression denoting the index
- Since:
- JPA 2.0