dev@jersey.java.net

mapping complex database primary key to UriTemplate

From: Peter Liu <Peter.Liu_at_Sun.COM>
Date: Thu, 27 Sep 2007 18:07:37 -0700

I am currently thinking about how we can support complex database
primary keys.
For example, let's say a primary key is made up of column1 and column2.
One possible way to map this to the UriTemplate would be
{column1}/{column2}.
However, this implies that there is a hierarchy between the columns.
Another way to map it would be {column1},{column2} or {column1};{column2}.
This doesn't imply a hierarchy but I don't believe this is currently
supported by jersey.

So, I have two questions. First, which mapping is preferable? If the
second form is preferred,
can this be supported in jersey?

Thanks.

Peter