Hi,
I have never worked with datastores before but i want to write
to the datastore but when i try to use the samples from docs
i get these errors
*Caused by: java.lang.Error: Unresolved compilation problems: The import
> com.google.android cannot be resolved The import
> com.google.appengine.api.datastore cannot be resolved The import
> com.google.appengine.api.datastore cannot be resolved The import
> com.google.appengine.api.datastore cannot be resolved The import
> com.google.appengine.api.datastore cannot be resolved PMF cannot be
> resolved DatastoreService cannot be resolved to a type
> DatastoreServiceFactory cannot be resolved Entity cannot be resolved to a
> type Entity cannot be resolved to a type*
>
if have put this code in the code for my widget
DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
>
>
>> Entity employee = new Entity("Employee");
>
> employee.setProperty("firstName", "Antonio");
>
> employee.setProperty("lastName", "Salieri");
>
> employee.setProperty("attendedHrTraining", true);
>
>
>> datastore.put(employee);
>
>
What is the problem please help me
(sorry for the bad english)
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine-java/-/xdTilZyb3GkJ.
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.