I get the follwing compile error -- com.google.appengine.api.datastore.Key 
can not be found in source packages. Check the inheritance chain from your 
module; it may not be inheriting a required module or a module may not be 
adding its source path entries properly -- with the below code snippet.

What's wrong with this code? Why can't the compiler 
see com.google.appengine.api.datastore.Key. I assume by "inheritance chain" 
it means the build path and that 
includes com.google.appengine.api.datastore.Key in the app eng SDK, so why 
am I getting the above compile error in the following code:

package com.sis.app.shared;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.datastore.Key;


@SuppressWarnings("serial")
@PersistenceCapable
public class ModelMember implements Serializable {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/ORTrGSg-Cj4J.
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?hl=en.

Reply via email to