You should be able to use an unowned one-to-many, but you won't be able to
easily change the relationship to owned later.
You can also create a second class of object with the same set of fields as
the parent, but this isn't ideal for large, multi-level (e.g.
parent->child->grandchild->great-grandchild) hierarchies.

- Jason

On Tue, Sep 1, 2009 at 11:04 PM, mar_novice <mariocape1...@gmail.com> wrote:

>
> Since it is not yet supported, what is the possible approache in the
> meantime to solve this? Can i use unowned one-to-many relationship?
> And when the one-to-many same class relationship bug is already fixed,
> is there a way to convert the unowned one-to-many to owned?
>
> On Sep 2, 8:29 am, mar_novice <mariocape1...@gmail.com> wrote:
> > I filed the bug already, thanks.. hope that this bug will be fix
> > immediately and have an update with the sdk. I really need to
> > implement this..
> >
> > On Aug 29, 2:12 am, "Jason (Google)" <apija...@google.com> wrote:
> >
> > > My sample was using JDO. In JDO, this does not work, but I haven't
> tested
> > > with JPA yet.
> > > - Jason
> >
> > > On Thu, Aug 27, 2009 at 1:34 PM, Michael Niu <yong...@gmail.com>
> wrote:
> >
> > > > You can  implements   self one-to-many relationship  the tricky is
> > > > Dont define ManytoOne, for your  example your  class  will  look
> > > > like :
> > > > class  Mall{
> > > > ...
> > > > id and  other  properties
> >
> > > > @OneToMany
> > > > List<Mall>subMallList;
> >
> > > > ...
> >
> > > > }
> >
> > > > remenber. dont add   parent  object to  the class!
> >
> > > > cheers
> >
> > > > Michael
> >
> > > > On Aug 25, 11:03 pm, mar_novice <mariocape1...@gmail.com> wrote:
> > > > > Is it possible to implement a parent-child relationship in the same
> > > > > class..
> > > > > for example
> >
> > > > > parent Location has a child Location...
> >
> > > > > for instance Mall class with fields name, longitude, latitude.
> > > > >  a big mall            name X, lat - 1.1  long- 2.3
> > > > >      sub mall          name A, lat - 1.01  long -2.1
> > > > >          sub mall      name B
> > > > >      sub mall
> > > > >      sub mall
> > > > >          submall
> > > > >               sub mall
> >
> >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to