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

ServiceBuilder doesn't generate TreeModel code for plugins

    Details

      Description

      When a model with a "treePath" column is created in a plugin, the generated Clp model doesn't implement TreeModel's methods. This produces a compiler error.

      The "model_clp.ftl" template should be modified to generate the methods when appropriate.

      To reproduce:

      • Go to the knowledge-base-plugin (plugings/portlets/knowledge-base-portlet)
      • edit the docroot/WEB-INF/service.xml file. Add the following columns to the KBArticle model (see attached service.xml file):
        • parentKbArticleId of type long
        • treePath of type String
      • Execute ant build-service and ant compile and assert a compile time error occurs

      Expected:
      Everything builds and compiles fine; no error message or warning displayed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.chan Brian Chan
              Reporter:
              adolfo.perez Adolfo Pérez
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 48 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M2