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

Implement java.math.BigDecimal support for GWT

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0.RC1
    • Component/s: GWT
    • Labels:
      None

      Description

      I created a field using java.math.BigDecimal type and when I executed gwt setup, some compiler errors appeared telling me that import com.acme.gwt.request.BigDecimalRecord cannot be resolved. This is happening because GWT JRE Emulation still doesn't support java.math.BigDecimal as data type.

      To solve this, gwt-math can be implemented when gwt setup roo command is executed. The roo script I'm using to generate acme project is the following:

      //Script Bigins
      project --type java.lang.Integerproject --topLevelPackage com.acme --projectName Acme

      persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY

      entity --class ~.server.domain.Client --testAutomatically

      field string --fieldName firstName --sizeMax 25

      field string --fieldName lastName --sizeMax 25 --notNull

      field number --type java.util.Date --fieldName dateOfBirth --notNull

      field number --type java.math.BigDecimal --fieldName amountRefunded --digitsInteger 22 --digitsFraction 2

      field boolean --fieldName isActived --notNull

      gwt setup

      controller all --package com.acme.web

      logging setup --level DEBUG

      perform eclipse
      //Script ends

        Attachments

          Activity

            People

            Assignee:
            cramsdale Chris Ramsdale
            Reporter:
            jc-perez Juan Carlos Perez
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: