Hello.

Maybe, I'm missing something obvious in the documentation, but I can't
figure out why I cannot properly persist an entity which has two list-
fields of the same type properly.

I have the following persisted class:


@PersistenceCapable(identityType = IdentityType.APPLICATION)
public final class A
    implements Serializable
{

  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  @PrimaryKey
  private Key key;

  @Persistent
  private List<B> list1 =  new ArrayList<B>();

  @Persistent
  private List<B> list2 =  new ArrayList<B>();

}

where B is a very basic persisted class with only two persisted
attributes (and of course, a key).

Every time I persist an entity of A with 2 non-empty lists fields
list1 and list2, once I request this instance (in another
transaction), the list2 field is always empty.

Does it mean that there are currently some restrictions on App Engine,
which prevents to persist two collection attributes of the same type
at the same time? Do I need to annotate the two fields in a specific
way? I am running App Engine v1.2.5.

Thank you so much for your help. Regards,
Édouard
--~--~---------~--~----~------------~-------~--~----~
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-java@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