Using GWT with Morphia/MongoDB -


i wondering if has attempted , been successful @ using morphia jar interacting mongodb database inside of gwt? i've been using below object base pojo's, whenever attempt save down object using updateoperations<derivedpersistententity> or datastore.save() concurrentmodificationexception.

package com.greycells.dateone.shared;  import com.google.code.morphia.annotations.id; import com.google.code.morphia.annotations.version;  public class persistententity {      @id     private string id;     @version     private long version = null;      public persistententity() {     }      public string getid() {         return id;     }      public long getversion() {         return version;     }      public void setversion(long version) {         this.version = version;     }  } 

i've added gwt extension jar have download separately morphia , referenced in gwt.xml , seems of no help. additionally i've tried changing id field of persistententity objectid type can't project bind correctly because complains of...

[error] no source code available type org.bson.types.objectid; did forget inherit required module?

you can't use string @id field of entity in morphia must objectid. gwt support in morphia broken of v1.02.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -