Hey Max --

Do you know of a resource (site, book, etc) where I could learn how
owned parent/child collections work vis-a-vis lazy loading and object
identity via overriding equals method in child class?  I am having a
difficult time removing a child object from the owner's collection
even though I have implemented an equals method in the child type.

I can break the code at getFriends().remove(aFriend) and see the
"aFriend" in the collection, however, the remove(...) returns false
and the collection remains the same.  This attempt is nested inside
beingTx and commit so I am really perplexed!  I have spent more time
with this seemingly trivial use case than it would have taken to
completely write the code by hand in JDBC - and that is a sad
commentary.

P.S. I read how JDO is so cool and persistence works through
reachability and is transparent.  However, I can't seem to get things
to work after hitting the object with a baseball bat!

Peace,
Scott

On Oct 16, 6:22 pm, Max Ross <[email protected]> wrote:
> Hi everybody,
>
> I've been writing JDO/JPA Snippets That Work for 5 weeks now.  I'm enjoying
> the writing and I'm pleased with the discussion that has taken place around
> the weekly topics, so I intend to keep going.  However, while the Google
> Group is certainly a great place for you, our customers, to reach out to us
> and to help one another, I'm not convinced it's the best place for me to be
> publishing something like Snippets That Work.  It's not documentation, but
> it's _almost_ documentation.  So, in the interest of consolidating these
> posts in one place I've decided to establish a GAE/J persistence blog:
>
> http://gae-java-persistence.blogspot.com/
>
> You'll notice I've already cross-posted the first 5 Snippets That Work to
> this blog, and starting next week I'll be posting the new entries there.  If
> you find Snippets That Work valuable I'd recommend subscribing using your
> favorite feed reader, but I'll still send out a link on this message board
> whenever there is a new post.
>
> Thanks for reading!
>
> Max
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to