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

Follow column order as specified in service.xml when setting attributes of object

    Details

      Description

      Example:

              team.setCompanyId(user.getCompanyId());
              team.setUserId(userId);
              team.setUserName(user.getFullName());
              team.setGroupId(groupId);
              team.setName(name);
              team.setDescription(description);
      
          <entity local-service="true" name="Team" remote-service="true" uad-application-name="Site Teams" uad-dir-path="../modules/apps/site/site-teams-uad/src/main/java" uad-package-path="com.liferay.site.teams" uuid="true">
      
              <!-- PK fields -->
      
              <column accessor="true" name="teamId" primary="true" type="long" />
      
              <!-- Audit fields -->
      
              <column name="companyId" type="long" />
              <column name="userId" type="long" />
              <column name="userName" type="String" uad-anonymize-field-name="fullName" />
              <column name="createDate" type="Date" />
              <column name="modifiedDate" type="Date" />
      
              <!-- Other fields -->
      
              <column name="groupId" type="long" />
              <column accessor="true" name="name" type="String" />
              <column name="description" type="String" />
              <column name="lastPublishDate" type="Date" />
          </entity>
      

        Attachments

          Activity

            People

            • Assignee:
              support-qa Support QA
              Reporter:
              hugo.huijser Hugo Huijser
              Recent user:
              Csaba Turcsan
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: