Hi,
I'm constructing a POJO (Employee) on teh client side and trying to
make persistent in teh datastore.
So that both client and sever can see this class i place it in the /
shared folder and annotate the object as suggested by tutorials for
persistence...
@PersistenceCapable
public class Employee {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;
etc.
The problem as some of you are probably predicting is GWT (not Java)
throws an exception and cannot import com.google.appengine when it
tries to import the Key.
the import com.google.appengine cannot be resolved
I've seen various hacks and solutions around this issue in this
group, on forums and on blogs...none of which are too pretty...
from super-src hack to maintaining client and server object clones..
(double classes) and so on...
e.g http://fredsa.allen-sauer.com/2009/04/1st-look-at-app-engine-using-jdo.html
Does this issue still require a 'hacky' solution or is there a more
elegant solution available now?
Thanks...
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" 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-web-toolkit?hl=en.