Hi Ian,

thank you for your tip, but I did already change my code that way and it worked.

Now I'm facing another really strange problem:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/41b5219aa26aacaa/d8342ad1d19e35c9#d8342ad1d19e35c9

Maybe you could give it a glance.

Thanks

Ian Marshall wrote:
Hi Patrizio,

You might find it much easier to create each User's Stat instance
outside of your User class. (Knowing my brain, I personally would find
this easier and simpler!)

As a first step, why not replace

  @Persistent
  private Stat stat= new Stat();

with

  @Persistent
  private Stat stat;


and add a setter method

  public void setStat(Stat stStat)
  {
    stat = stStat;
  }


and then create your Stat instances elsewhere in your app?

It could be (and GAE/J experts may correct me here) that the line

  private Stat stat= new Stat();

causes a new instance to be created each time a User instance is
brought forth into your app (by a create, fetch, etc.)?

I trust that this might help,

Ian



  

--

Patrizio Munzi
Product Specialist
Viale Bruno Buozzi, 19 - 00197 Roma (Italy)
tel: +39 06 4543 3540
fax: +39 06 4543 3587
mobile: +39 393 7195 164
mail: [email protected]
web: http://www.eris4.com
skype: eris4_munzi


--~--~---------~--~----~------------~-------~--~----~
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