I have a relation between a User and Article

(1) User can have one or many article

(2) an article is owned by only one user

i'am intersted only by the relation (2)

the User is persisted

I create a new Article and i want relie it with an existant User

But i have a probleme when trying to persist the article object

my code is like

article.setUser(user);

 pm.makePersistent(article);

can any one help me please
--~--~---------~--~----~------------~-------~--~----~
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