Details

    • Similar Issues:
      Show 5 results 

      Description

      same improvement was addressed as LEP-841.

      Details got addressed at https://www.liferay.com/community/forums/-/message_boards/message/7459432.

      Any application or portlet dealing with currencies should really use the java BigDecimal class. Thus It would be nice for the Service-Builder to support data-type BigDecimal.

      A proposal:

      1) provide data type called big_decimal in service-builder DTD

      e.g.,
      <column name="field6" type="big_decimal" convert-null="false" />
      <column name="field7" type="big_decimal" convert-null="true" />

      It would be better to add two elements for type BigDecimal in service-builder.

      constraint-precision: the precision
      constraint-scale: the scale

      For example,

      salary DECIMAL(5,2)

      constraint-precision: 5
      constraint-scale: 2

      It can be presented as
      <column name="salary" type="big_decimal"
      constraint-precision="5" constraint-scale="2" convert-null="false" />

      2) add new data type in Liferay core called BigDecimalType, where specifies default value;

      3) map big_decimal into NUMERIC or DECIMAL as part of SQL scripts

      4) map big_decimal into data type BigDecimalType

        Activity

        Hide
        Jonas Yuan added a comment -

        solution proposal was addressed at http://www.liferay.com/web/jonas.yuan/blog/-/blogs/bringing-data-type-bigdecimal-into-service-builder.

        A fix patch for trunk version will be attached here shortly.

        Show
        Jonas Yuan added a comment - solution proposal was addressed at http://www.liferay.com/web/jonas.yuan/blog/-/blogs/bringing-data-type-bigdecimal-into-service-builder . A fix patch for trunk version will be attached here shortly.
        Hide
        Prakash Khanchandani added a comment -

        Any updates on the fix-patch?

        Show
        Prakash Khanchandani added a comment - Any updates on the fix-patch?

          People

          • Votes:
            7 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 31 weeks, 6 days ago

              Development

                Structure Helper Panel