any idea how to solve it?
I'm using eclipse/gae/gwt/objectify all latest versions as of June 2011
This is the class I'm using:
package com.kupati1.server;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.googlecode.objectify.Objectify;
import com.googlecode.objectify.ObjectifyService;
import com.kupati1.client.PersistentService;
import com.kupati1.client.entities.Animal;
@SuppressWarnings("serial")
public class PersistentServiceImpl extends RemoteServiceServlet implements
PersistentService {
//Method must be present in Service Interface and Async Interface
public void persistAnimal(String color, String species) {
//The Objectify service for the entity must be registered before any
//operations can be executed
ObjectifyService.register(Animal.class);
Objectify ofy = ObjectifyService.begin();
Animal animal = new Animal();
//Use setters to populate the object
//the Id will be auto generated and does not need to be set
animal.setColor(color);
animal.setSpecies(species);
ofy.put(animal);
}
}
--
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.