jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Perez <mper...@gmail.com>
Subject Re: Version references
Date Wed, 01 Feb 2006 07:38:08 GMT
Sorry,

Do you mean that I have to search on the version storage?

Do you have a sample query. I'm a little lost since the last changes index
changes. I know to look on "normal" storage we should use /jcr:root but what
about looking on the version storage?

Martin

On 2/1/06, Tobias Bocanegra <tobias.bocanegra@day.com> wrote:
>
> hi martin,
> this is one speciality about the version storage - the references
> 'into the normal space' do not work. otherwise you would never be able
> to delete any node, that has a versioned reference pointing on it,
> since you can't modify a version.
>
> the other way around, it should work (eg: the jcr:baseVersion property).
>
> regards, toby
>
> On 1/31/06, Martin Perez <mpermar@gmail.com> wrote:
> > Hello.
> >
> > I have a node A that have many property references R1 on N1,R2 on N2,R3
> on
> > N3,....
> >
> > When A is deleted, I get the references using A.getReferences() and I
> change
> > those reference values to a default value so R1 = D, R2 = D, R3 = D, ...
> >
> > The problem is that the method getReferences() does not returns
> references
> > that come from version nodes. So now, I'm getting several
> > ItemNotFoundExceptions.
> >
> > How could I remove those references? Do I have to search the references
> > manually? And in that case, how can I search only on the version
> storage?
> >
> > Thanks!
> >
> > Martin
> >
> >
>
>
> --
> -----------------------------------------< tobias.bocanegra@day.com >---
> Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
> T +41 61 226 98 98, F +41 61 226 98 97
> -----------------------------------------------< http://www.day.com >---
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message