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

Generated code in gwt interface records does not compile

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Complete
    • Affects Version/s: 1.1.0.M2
    • Fix Version/s: 1.1.0.RC1
    • Component/s: GWT
    • Labels:
      None
    • Environment:
      Ubuntu 10.04
      sts-2.3.3.M2
      roo-1.1.0.M2
      maven-2.2.1.RELEASE

      Description

      Wrong imports and code using an entity with integers and double.

      Steps:

      project --topLevelPackage com.test.roo --projectName TestRoo --java 6
      persistence setup --database GOOGLE_APP_ENGINE --provider DATANUCLEUS
      entity --class ~.datos.Pedido --testAutomatically --identifierColumn id
      field string --fieldName descripcion --sizeMin 5
      field date --fieldName fecha --type java.util.Date
      gwt setup
      entity --class ~.datos.LineaPedido --testAutomatically --identifierColumn id

      Added manually 2 fields with type integer and double:

      @Entity
      @RooJavaBean
      @RooToString
      @RooEntity(identifierColumn = "id")
      public class Pedido {

      @Size(min = 5)
      private String descripcion;

      @Temporal(TemporalType.TIMESTAMP)
      @DateTimeFormat(style = "S-")
      private Date fecha;

      private int numeroLineas; // added manually

      private double precio; // added manually
      }

      The generated class PedidoRecord has compile errors:

      import com.test.roo.gwt.request.IntegerRecord; // does not exist
      import com.test.roo.gwt.request.DoubleRecord; // does not exist

      @RooGwtMirroredFrom(Pedido.class)
      @DataTransferObject(Pedido.class)
      public interface PedidoRecord extends Record {

      public String TOKEN = "PedidoRecord";

      Property<com.test.roo.gwt.request.IntegerRecord> numeroLineas = new com.google.gwt.valuestore.shared.Property<com.test.roo.gwt.request.IntegerRecord>("numeroLineas", "Numero Lineas", com.test.roo.gwt.request.IntegerRecord.class);

      Property<com.test.roo.gwt.request.DoubleRecord> precio = new com.google.gwt.valuestore.shared.Property<com.test.roo.gwt.request.DoubleRecord>("precio", "Precio", com.test.roo.gwt.request.DoubleRecord.class);

        Attachments

          Activity

            People

            Assignee:
            cromwellian Ray Cromwell
            Reporter:
            sergio.otero Sergio Otero
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: