Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Can not makePersistent on GAE/J project with JDO2

$
0
0

Hello,

 

I love Android Studio, so I'm using "Ultimate Edition" to develop GAE/J projects for trial now.

 

I tried creating a new GAE/J project with JDO2 on IntelliJ IDEA, but it does not work well because of the following org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException:

 

The class "Book"  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." 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 for the class is not found.

 

 

I also tried creating the same project on Eclipse and it works well without any problems. The created model is very simple as follows (I think this model is non-related):

 

@PersistenceCapable

public class Book {

    @PrimaryKey

    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)

    private Key key;

 

    @Persistent

    private String name;

 

    public Book(String name) {

        this.name = name;

    }

}

 

If I can fix this issue on IntelliJ IDEA, I want to buy a Personal License. I would appreciate it if you could let me know how to fix this issue.

 

Thanks.


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>