Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-112600

Extend convert-null parameter to all data types

Details

    • Feature Request
    • Status: Under Review
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Background
      Service builder automatically converts null values to empty values ("", 0, etc).
      With LEP-1353, a new convert-null parameter was introduced to allow null strings.

      Issue
      This parameter was only applied to String data types. The rest of data types do not allow null values as they are auto-converted to the data type's default value.

      null conversion code:
      service.xml: https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portal/service.xml#L156
      hibernate: https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/META-INF/portal-hbm.xml#L177
      data mapping: https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portal/dao/orm/hibernate/IntegerType.java#L90-L122

      Contributed solution
      for Liferay 6.0 in LPS-14863

      Request
      Extend the convert-null parameter to the rest of data types

      Attachments

        Activity

          People

            david.truong David Truong
            jordi.rodo Jordi Rodó
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Packages

                Version Package