java - Error:The import com.google.appengine.api.datastore cannot be resolved JPA GAE GWT -


error in development mode

[error] [cbd] - line 15: import com.google.appengine.api.datastore cannot resolved 

user.java

@entity public class user implements serializable {      private static final long serialversionuid = 1l;      @id     @column(name="id")     @generatedvalue(strategy = generationtype.identity)     private key id;      private string googleid;      private string firstname;      private string lastname;      private string password;      private string gender;      private string email;       @onetoone(cascade=cascadetype.all)     @joincolumn(name="key")     private authenticationtoken token= authenticationtoken();     ......} 

authenticationtoken.java

public class authenticationtoken implements serializable {      /**      *       */     private static final long serialversionuid = 1l;      @id     @column(name="key")     @generatedvalue(strategy = generationtype.identity)     private key key;      private string email;      private string token;      private date obtained;      private date activity;     .....} 

persistence.xml

<?xml version="1.0" encoding="utf-8" ?> <persistence xmlns="http://java.sun.com/xml/ns/persistence"     xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xsi:schemalocation="http://java.sun.com/xml/ns/persistence         http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">      <persistence-unit name="transactions-optional">           <provider>org.datanucleus.api.jpa.persistenceproviderimpl</provider>          <class>com.cbd.shared.entities.user</class>      <class>com.cbd.shared.entities.authenticationtoken</class>      <exclude-unlisted-classes>true</exclude-unlisted-classes>          <properties>             <property name="datanucleus.nontransactionalread" value="true"/>             <property name="datanucleus.nontransactionalwrite" value="true"/>             <property name="datanucleus.connectionurl" value="appengine"/>         </properties>     </persistence-unit> </persistence> 

i'm using gwt tried moving entities server side rather shared side package same error

found error .was not adding datanucleus plugin eclipse therefore of jpa libraries wasn't defined in project runtime


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -