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

Extract type settings table from Layout and Group type settings fields

Details

    Description

      Extract TypeSetting table from Layout and Group typeSettings fields.

      Entity should look something like this:

      <entity change-tracking-enabled="true" local-service="true" name="TypeSetting" remote-service="false">
      
      	<!-- PK fields -->
      
      	<column name="typeSettingId" primary="true" type="long" />
      
      	<!-- Audit fields -->
      
      	<column name="companyId" type="long" />
      
      	<!-- Other fields -->
      
      	<column name="classNameId" type="long" />
      	<column name="classPK" type="long" />
      	<column name="name" type="String" />
      	<column name="value" type="String" />
      
      	<!-- Finder methods -->
      
      	<finder name="CN_CPK" return-type="Collection">
      		<finder-column name="classNameId" />
      		<finder-column name="classPK" />
      	</finder>
      	<finder name="CN_CPK_N" return-type="TypeSetting" unique="true">
      		<finder-column name="classNameId" />
      		<finder-column name="classPK" />
      		<finder-column name="name" />
      	</finder>
      	<finder name="C_CN_N_V" return-type="Collection">
      		<finder-column name="companyId" />
      		<finder-column name="classNameId" />
      		<finder-column name="name" />
      		<finder-column name="value" />
      	</finder>
      </entity>
      

      Depending on space requirements value may need to be split into a indexable smallValue varchar(255) and a largeValue clob.

      Most of the work is replacing updates to the model's fields to service calls and possibly fixing issues with existing module upgrades. Be aware of model listeners no longer being called because of the change that need to be updated to use the new entity.

      Attachments

        Activity

          People

            tina.tian Tina Tian
            preston.crary Preston Crary (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package