my demo
fist,
public class CommentTheme {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;
@Persistent
private String theme;
}
then
for (int i = 20; i > 0; i--) {
CommentTheme commentTheme = new CommentTheme(i+"")
persistenceManager.makePersistent(commentTheme);
}
now all is OK,but when I add
@Persistent
private int themeCount;
to the class CommentTheme ,the system tell me the themeCount should
not be null,but
if i add
@Persistent
private String themeCount;
all thing is OK
so What is the problem! even if i add a default value to the nt
themeCount ,my app is also Wrong ! WHy
--
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.