datanucleus,

I have created SMSUser class like this

....
....
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class SMSUser
{

  @PrimaryKey
  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  public Key UserId;

  @Persistent
  public User sUser;

  @Persistent
  public String ContractPerson;


  @Persistent
  public String Company;

  @Persistent
  public String Address;

.............
............

What i have changed is, instead of get/set method, i have used public
members. Does it make any difference???


On Feb 19, 1:49 pm, datanucleus <andy_jeffer...@yahoo.com> wrote:
> > PS: I have added pm.close(); after pm.makePersistent(u);
> > still it does not update the record...
>
> Why should it ? You have gone and updated fields directly so how does
> the object *know* that it has been updated ? Either mark the class
> updating the fields as @PersistenceAware, or update via setters

-- 
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-j...@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