Hello
Following is what I get after adding new field to my class:
--
org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException: The
class "net.jzaruba.appengine1.Article" is not persistable. This means that
it either hasnt been enhanced, or that the enhanced version of the file is
not in the CLASSPATH (or is hidden by an unenhanced version), or the
Meta-Data/annotations for the class are not found.
--
Until now the Article got persisted without any issues.
The newly added field has generic type as its supertype.
Is there anything suspicious in my code?
Article:
@PersistenceCapable(detachable="true")
public class Article
extends HasKey
{
// ...
@Persistent(defaultFetchGroup = "true")
@Extension(vendorName = "datanucleus", key = "gae.unindexed",
value="true")
private ArticleCategoryIndex tagIndex = null;
// has getter and setter below (gets assigned and populated only when
non-empty)
// getters, setters, ...
}
ArticleCategoryIndex:
@PersistenceCapable
public class ArticleCategoryIndex
extends EntityIndex<Article, Category>
{
ArticleCategoryIndex(Article article)
{
super(article);
}
}
EntityIndex:
@PersistenceCapable
public abstract class EntityIndex<E extends HasKey, I extends Object>
{
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;
@Persistent
@Extension(vendorName="datanucleus", key="gae.parent-pk", value="true")
private Key parentKey;
@Persistent
private List<I> items = new LinkedList<I>();
public EntityIndex(E entity)
{
setParentKey(entity.getKey());
}
// getters, setters, ...
}
Could anyone tell me what I am doing wrong here, please?
Regards
J. Záruba
--
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.