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

ServiceBuilder generates incorrect PersistenceIml if finder defines comparator

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Inactive
    • Affects Version/s: 6.1.30 EE GA3
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      LR 6.1.30 tomcat bundle

      Description

      Given following entity in service.xml

      <entity name="Test">
        <column name="testId" type="long" primary="true" />
        <column name="t1" type="String" />
        <finder return-type="Test" name="T1">
          <finder-column name="t1" comparator="=="></finder-column>
        </finder>
      </entity>
      

      code generated in TestPersistenceImpl contains errors:

      FINDER_PATH_COUNT_BY_T1 cannot be resolved to a variable

      I tested this with comparator values "like", "==" and "!=" and the error is always the same. Only way to get it work was to omit the comparator altogether.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 44 weeks, 4 days ago

                Packages

                Version Package