jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe Lombart" <christophe.lomb...@gmail.com>
Subject Re: OCM: recursive behavior q. and exception info q.
Date Thu, 28 Aug 2008 19:19:24 GMT
Ouffff I'm lucky today :-)

br,
Christophe


On Thu, Aug 28, 2008 at 15:45, Aleksei Lukin <lukin@stu.cn.ua> wrote:

>
> Sorry for disturbance, it was my fault.
> Recursive behavior works OK, in my case there was null in field that
> interpreted as id.
>
> > Dear Christophe, dar All!
> >
> > I use latest SVN snapshot of  OCM for development.
> > I have some difficulties with ocm in following situations with  class
> like
> > this:
> >
> > @Node
> > public class Category{
> >   @Collection List<Category> subslist;
> > }
> >
> > When I do:
> >
> > myclass.getSubsList().add(sub);
> > ocm.update(myclass)
> >
> > sub does not get saved and I need ocm.insert(sub).  If I do
> > ocm.insert(sub), I need provide path because it is null so...
> >
> > I do not think it is convinient way to manage subclasses. Any
> suggestions?
> > Is there some "thumb rule" for situations like above?
> >
> > Besides it, when I do ocm.insert() or ocm.update() and something goes
> wrong
> > e.g. some field is null, I see uninformative exceptions that do not have
> > any information what class and what field cuased failure.
>
>
>
> --
> SY, Alex Lukin
> RIPE NIC HDL: LEXA1-RIPE
>

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