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

Create service builder localization table support

    Details

      Description

      Create service builder localization table support.

      Currently we have a localized attribute for column elements that serializes xml into a column for localization.

      This has several drawbacks:

      • We have to serialize and deserialize the values each time we want to read or update the value.
      • It's not possible to correctly sort by a localized column.
      • Model hints cannot be used to show correct character limits for form inputs as some of the characters are used for the xml and each translation shares the same column.

      By having the localization fields stored in another table we can remove these problems.

      Simple example usage in the service.xml, please see the dtd for more info:

      	<entity local-service="true" name="LocalizedEntry" remote-service="false">
      
      		<!-- PK fields -->
      
      		<column name="localizedEntryId" primary="true" type="long" />
      
      		<!-- Localized entity -->
      
      		<localized-entity>
      			<localized-column name="title" />
      			<localized-column name="content" />
      		</localized-entity>
      	</entity>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.chan Brian Chan
              Reporter:
              preston.crary Preston Crary
              Recent user:
              Enterprise Release HU
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.0.0 DXP FP14
                  7.0.0 DXP SP3
                  7.0.3 CE GA4
                  7.0.X EE
                  7.1.X
                  7.2.X
                  Master