Hi, when I run my Java servlet I get this error - group.Groupie is not
a supported property type.
("group" being the package and "Groupie" being the class)
Here is the code for Groupie:
package group;
import com.google.appengine.api.datastore.Key;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import java.util.ArrayList;
@PersistenceCapable
public class Groupie
{
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;
@Persistent
private ArrayList<String> numbers;
@Persistent
private String groupName;
public Groupie(String name, ArrayList<String> temp)
{
groupName = name;
numbers = temp;
}
public Groupie(String name)
{
groupName = name;
numbers = new ArrayList<String>();
}
public String getGroupName()
{
return groupName;
}
public ArrayList<String> getNumbers()
{
return numbers;
}
public void addNumber(String temp)
{
numbers.add(temp);
}
public String getAllNumbers()
{
String result = "";
for(int index =0; index < numbers.size(); index++)
{
result += "<br>" + numbers.get(index);
}
return result;
}
}
Why do I still get the error even though I put the @Persistent's?
Thanks
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" 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?hl=en.