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

            Assignee:
            preston.crary Preston Crary
            Reporter:
            preston.crary Preston Crary
            Recent user:
            Bruno Falcao
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package