Hey,
I have encountered a weird case while trying to create a new entity in
the database:
I have this code:
Meeting meeting=new Meeting(...)
pm.makePersistent(meeting);
Long meetingID=meeting.getId();
if(meetingID==null)
throw new Exception("meetingID is null...");
and in the Meeting Class:
/** The id. */
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;
so the id is Long.
The problem is that sometimes the above code throws an exception, some
other times it doesn't... What am I doing wrong?
Thanks!
--
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.