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