Announcement Announcement Module
Collapse
No announcement yet.
Roo, GAE and GWT incompatibilities Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Roo, GAE and GWT incompatibilities

    Hi all,

    I have an issue in my persistent beans that contain core GAE types like text clobs:

    My bean needs to contain a fiel named detailedDescription of type CLOB



    import com.google.appengine.api.datastore.Text;

    @RooJavaBean
    @RooToString
    @RooEntity
    public class Place {
    private Text detailedDescription;

    }



    the thing is that Roo generates in the GWT layer classes that use an unexisting TextProxy because it supposes Text is a locally defined bean (or what)

    Since it's not, I decided to disable the roo code by writing my own accessors:


    public String getDetailedDescription() {
    return detailedDescription.getValue();
    }

    public void setDetailedDescription(String detailedDescription) {
    this.detailedDescription = new Text( detailedDescription );
    }

    this leads to :

    [ERROR] Method overloads found in type fr.ploisir.server.domain.Place named setDetailedDescription:
    void setDetailedDescription(java.lang.String )
    void setDetailedDescription(com.google.appengine.api.da tastore.Text )

    any ideas???
Working...
X