Sorry, I'm actually trying to use the ORDER BY part of an sql query and it seems as if it only works on properties. Ordering by names and paths seems like it may be a commonly requested function so I was hoping there may be some easy way to either make the node orderable in the sense that it can be ordered by name or path or force the name and/or path to be defined as a property so that they can be ordered. Currently I have to get all the nodes I want, order them, and then get a sublist out of that ordered list in order to get the desired functionality. Over rmi this is fairly slow and unneeded when there should be a way to get the ORDER BY functionality working on names or paths from the rmi server. I'm just asking if this is possible through node configuration or perhaps a function that I may have missed. Thanks, Brett
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tobias Bocanegra Sent: Tuesday, April 29, 2008 4:10 PM To: users@jackrabbit.apache.org Subject: Re: getProperty and jcr:name hi brett, i don't quite understand your question. the 'jcr:name' and 'jcr:path' properties do not exist on a node unless you set them. using getName() or getPath() is the correct way of retrieving the name or path of an item. -- regards, toby On 4/29/08, Conoly, Brett <[EMAIL PROTECTED]> wrote: > I was just writing a comparator for the jcr nodes and in my test case I > was comparing the jcr:name and jcr:path properties of the nodes. I > realize that there's a getPath and getName function on the nodes but is > there any way to get these as properties without it throwing a > PathNotFoundException? > Thanks in advance