I might be having a similar issue. I have simplified this issue down
to a simple example listed below. If I run with the current comments,
everything works fine, and the Collections are loaded. If I uncomment
"foo1" or "foo2", the Collections no longer load (they are null). If
I uncomment the constructor where I add values to the list, everything
works fine again.
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Player2 {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
public Long key;
//@Persistent
//private Long foo1; //Cause Collection issue
//@Persistent
//private String foo2; //Causes Collection issue
@Persistent
private Key foo3; // This works
@Persistent(defaultFetchGroup = "true")
private Set<Long> longSet = new HashSet<Long>();
@Persistent(defaultFetchGroup = "true")
private List<Long> longList = new ArrayList<Long>();
@Persistent(defaultFetchGroup = "true")
private Set<String> stringSet = new HashSet<String>();
@Persistent(defaultFetchGroup = "true")
private List<String> stringList = new LinkedList<String>();
@Persistent(defaultFetchGroup = "true")
private Set<Key> keySet = new HashSet<Key>();
@Persistent(defaultFetchGroup = "true")
private List<Key> keyList = new LinkedList<Key>();
public Player2() {
//Adding to the List Fixes Collection issue
//longSet.add(1234l);
//longList.add(1234l);
//stringSet.add("1234l");
//stringList.add("1234l");
//keySet.add(KeyFactory.createKey(Player2.class.getSimpleName
(), "[email protected]"));
//keyList.add(KeyFactory.createKey(Player2.class.getSimpleName
(), "[email protected]"));
}
}
I have started another thread in case this is a different issue, but
wanted to post here because this thread is listed in a ticket.
Thanks,
Jeff
On Oct 14, 2:23 pm, WdWeaver <[email protected]> wrote:
> Hi Jason,
>
> I filed this issue
> here:http://code.google.com/p/datanucleus-appengine/issues/detail?id=144
>
> Thanks,
> Wada3
>
> On 10月15日, 午前4:19, "Jason (Google)" <[email protected]> wrote:
>
> > Here's the link to the datanucleus-appengine project's issue
> > tracker:http://code.google.com/p/datanucleus-appengine/issues/list
>
> > - Jason
>
> > On Mon, Oct 12, 2009 at 7:36 AM, datanucleus
> > <[email protected]>wrote:
>
> > > > Should it be filed as a bug of datanucleus-appengine?
>
> > > Yes.
> > > After makePersistent() an object should be in Persistent-Clean state
> > > and any SCO fields should be wrapped (see the log which should tell
> > > you if they are doing that); that is the whole point of transparent
> > > persistence. If GAE/J is not doing that then it is a bug
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---