The difference between your code and the code in the blog post is that
you're calling em.persist() on the child object but the blog post is calling
em.persist() on the parent object. If you want to take advantage of
implicit entity group assignment it's important to manage children via their
paren
I'd recommend basing your code on the example here to get something working:
http://gae-java-persistence.blogspot.com/2009/10/creating-bidrectional-owned-one-to-many.html
Then you can start tweaking.
Max
On Wed, Dec 30, 2009 at 3:02 PM, markm208 wrote:
> I am thoroughly confused… I am trying t
I am thoroughly confused… I am trying to set up a simple one to many
relationship using JPA, I think that this should work but instead I
get the error "Primary key for object of type Member is null." Any
help would be greatly appreciated.
@Entity(name = "Member")
public class Member
{
@Id