Hi,

On Mon, Mar 1, 2010 at 6:27 PM, Paco Avila <[email protected]> wrote:
> I see a couple of ways to obtain the Path from a Node:
>
> - Path path = ((NodeImpl) myNode).getPrimaryPath();
> - Path path = ((SessionImpl)
> session).getHierarchyManager().getPath(((NodeImpl) myNode).getId());
>
> Which is the preferred form?

Neither. You shouldn't be typecasting instances to Jackrabbit-specific
implementation classes.

What's wrong with a standard myNode.getPath() call?

BR,

Jukka Zitting

Reply via email to