Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-1295

gwt.request.SetRecord errors on a simple one-to-many mapping with gwt

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 1.1.0.M3
    • Fix Version/s: 1.1.0.RC1
    • Component/s: GWT
    • Labels:
      None
    • Environment:
      OS X 10.6

      Description

      When I run the following, I get compile errors:

      project --topLevelPackage com.saers.temperaments --projectName Temperaments --java 6 --template STANDARD_PROJECT
      persistence setup --provider DATANUCLEUS --database GOOGLE_APP_ENGINE
      entity --class ~.data.entities.Temperament --testAutomatically
      field string --fieldName name
      field string --fieldName description
      field string --fieldName referencingUrl
      enum type --class ~.enums.CommaType
      enum constant --name PythagoreanComma
      enum constant --name SyntonicComma
      enum constant --name HoldrianComma
      enum constant --name CentDeviation
      entity --class ~.data.entities.TemperamentEntry --testAutomatically
      field enum --type ~.enums.CommaType --fieldName deviationType
      field number --fieldName amount --type java.lang.Double --notNull
      field set --fieldName entries --class ~.data.entities.Temperament --element ~.data.entities.TemperamentEntry --sizeMin 12 --sizeMax 12 --notNull
      gwt setup
      perform package

      The compile errors I get in M3 are:

      [INFO] Compiler errors :
      error at import com.saers.temperaments.gwt.request.SetRecord;
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/request/TemperamentRecord.java:8:0::0 The import com.saers.temperaments.gwt.request.SetRecord cannot be resolved
      error at Property<com.saers.temperaments.gwt.request.SetRecord> entries = new com.google.gwt.valuestore.shared.Property<com.saers.temperaments.gwt.request.SetRecord>("entries", "Entries", com.saers.temperaments.gwt.request.SetRecord.class);
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/request/TemperamentRecord.java:18:0::0 com.saers.temperaments.gwt.request.SetRecord cannot be resolved to a type
      error at Property<com.saers.temperaments.gwt.request.SetRecord> entries = new com.google.gwt.valuestore.shared.Property<com.saers.temperaments.gwt.request.SetRecord>("entries", "Entries", com.saers.temperaments.gwt.request.SetRecord.class);
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/request/TemperamentRecord.java:18:0::0 com.saers.temperaments.gwt.request.SetRecord cannot be resolved to a type
      error at abstract SetRecord getEntries();
      ^^^^ent roo>
      /tmp/src/main/java/com/saers/temperaments/gwt/request/TemperamentRecord.java:26:0::0 SetRecord cannot be resolved to a type
      error at abstract void setEntries(SetRecord entries);
      ^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/request/TemperamentRecord.java:36:0::0 SetRecord cannot be resolved to a type
      error at import com.saers.temperaments.gwt.request.SetRecord;
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentListView.java:15:0::0 The import com.saers.temperaments.gwt.request.SetRecord cannot be resolved
      error at columns.add(new PropertyColumn<TemperamentRecord, com.saers.temperaments.gwt.request.SetRecord>(TemperamentRecord.entries, com.saers.temperaments.gwt.scaffold.generated.SetRecordRenderer.instance()));
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentListView.java:46:0::0 com.saers.temperaments.gwt.request.SetRecord cannot be resolved to a type
      error at columns.add(new PropertyColumn<TemperamentRecord, com.saers.temperaments.gwt.request.SetRecord>(TemperamentRecord.entries, com.saers.temperaments.gwt.scaffold.generated.SetRecordRenderer.instance()));
      ^^^^^^^^^^^^^^^^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentListView.java:46:0::0 TemperamentRecord.entries cannot be resolved
      error at columns.add(new PropertyColumn<TemperamentRecord, com.saers.temperaments.gwt.request.SetRecord>(TemperamentRecord.entries, com.saers.temperaments.gwt.scaffold.generated.SetRecordRenderer.instance()));
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentListView.java:46:0::0 com.saers.temperaments.gwt.scaffold.generated.SetRecordRenderer cannot be resolved to a type
      error at import com.saers.temperaments.gwt.request.SetRecord;
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/ui/TemperamentEditActivity.java:13:0::0 The import com.saers.temperaments.gwt.request.SetRecord cannot be resolved
      error at getTemperamentEditView().setEntriesPickerValues(Collections.<SetRecord> emptyList());
      ^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/ui/TemperamentEditActivity.java:59:0::0 SetRecord cannot be resolved to a type
      error at requests.setRequest().findSetEntries(0, 50).with(
      ^^^^^nt roo>
      /tmp/src/main/java/com/saers/temperaments/gwt/ui/TemperamentEditActivity.java:61:0::0 The method setRequest() is undefined for the type ApplicationRequestFactory
      error at com.saers.temperaments.gwt.scaffold.generated.SetRecordRenderer.instance().getPaths()).fire(
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/ui/TemperamentEditActivity.java:62:0::0 com.saers.temperaments.gwt.scaffold.generated.SetRecordRenderer cannot be resolved to a type
      error at new Receiver<List<SetRecord>>() {
      oo>
      /tmp/src/main/java/com/saers/temperaments/gwt/ui/TemperamentEditActivity.java:63:0::0 SetRecord cannot be resolved to a type
      error at import com.saers.temperaments.gwt.request.SetRecord;
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentRecordRenderer.java:26:0::0 The import com.saers.temperaments.gwt.request.SetRecord cannot be resolved
      error at import com.saers.temperaments.gwt.request.SetRecord;
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentEditView.java:28:0::0 The import com.saers.temperaments.gwt.request.SetRecord cannot be resolved
      error at @UiField (provided = true) ValueListBox<com.saers.temperaments.gwt.request.SetRecord> entries=new ValueListBox<com.saers.temperaments.gwt.request.SetRecord>(com.saers.temperaments.gwt.scaffold.generated.SetRecordRenderer.instance());
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentEditView.java:48:0::0 com.saers.temperaments.gwt.request.SetRecord cannot be resolved to a type
      error at @UiField (provided = true) ValueListBox<com.saers.temperaments.gwt.request.SetRecord> entries=new ValueListBox<com.saers.temperaments.gwt.request.SetRecord>(com.saers.temperaments.gwt.scaffold.generated.SetRecordRenderer.instance());
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentEditView.java:48:0::0 com.saers.temperaments.gwt.request.SetRecord cannot be resolved to a type
      error at @UiField (provided = true) ValueListBox<com.saers.temperaments.gwt.request.SetRecord> entries=new ValueListBox<com.saers.temperaments.gwt.request.SetRecord>(com.saers.temperaments.gwt.scaffold.generated.SetRecordRenderer.instance());
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentEditView.java:48:0::0 com.saers.temperaments.gwt.scaffold.generated.SetRecordRenderer cannot be resolved to a type
      error at public void setEntriesPickerValues(Collection<SetRecord> values) {
      ^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentEditView.java:87:0::0 SetRecord cannot be resolved to a type
      error at import com.saers.temperaments.gwt.request.SetRecord;
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/ui/TemperamentActivitiesMapper.java:7:0::0 The import com.saers.temperaments.gwt.request.SetRecord cannot be resolved
      error at import com.saers.temperaments.gwt.request.SetRecord;
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/ui/TemperamentDetailsActivity.java:14:0::0 The import com.saers.temperaments.gwt.request.SetRecord cannot be resolved
      error at import com.saers.temperaments.gwt.request.SetRecord;
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentDetailsView.java:17:0::0 The import com.saers.temperaments.gwt.request.SetRecord cannot be resolved
      error at entries.setInnerText(com.saers.temperaments.gwt.scaffold.generated.SetRecordRenderer.instance().render(record.getEntries()));
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentDetailsView.java:72:0::0 com.saers.temperaments.gwt.scaffold.generated.SetRecordRenderer cannot be resolved to a type
      error at entries.setInnerText(com.saers.temperaments.gwt.scaffold.generated.SetRecordRenderer.instance().render(record.getEntries()));
      ^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentDetailsView.java:72:0::0 The method getEntries() is undefined for the type TemperamentRecord
      error at import com.saers.temperaments.gwt.request.SetRecord;
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      /tmp/src/main/java/com/saers/temperaments/gwt/ui/TemperamentListActivity.java:11:0::0 The import com.saers.temperaments.gwt.request.SetRecord cannot be resolved
      ties.Temperament roo>

        Attachments

          Activity

            People

            Assignee:
            cromwellian Ray Cromwell
            Reporter:
            niklassaers Niklas Saers
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: