openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mariusz Lipinski <mari...@interia.pl>
Subject How to use @OrderColumn values in SELECT
Date Mon, 04 Jun 2007 10:01:58 GMT

Hi,

OpenJPA adds an extension to JPA spec allowing to persist List order in
additional database table column. It goes like this:

   @OrderColumn(name="ORD")
   private List<Request> requests;

But is there a way I could use this value (value of ORD column) in SELECT
then? Eg. I would like to select all the requests for specific set of people
but only those that are on the first position on their requests list.
-- 
View this message in context: http://www.nabble.com/How-to-use-%40OrderColumn-values-in-SELECT-tf3864133.html#a10946843
Sent from the open-jpa-dev mailing list archive at Nabble.com.


Mime
View raw message