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

ServiceBuilder does not generate all dependencies for compound keys

    Details

      Description

      Using the latest blade and service builder, ds as the default dependency injection, if you have an <entity /> in the service.xml file with a compound primary key, when service builder generates the code, the API module will have the service/persistence/<entity>PK class (for the primary key).

      This class has dependencies on two petra modules, com.liferay.petra.lang and com.liferay.petra.string. However, SB does not inject these dependencies into the build.gradle file, so builds fail without manual cleanup of the generated code.

      The two classes the PK will depend upon are:

      {{import com.liferay.petra.lang.HashUtil;
      import com.liferay.petra.string.StringBundler;
      }}
      This may be a bug w/ other versions of SB under 7.2 with the DS injection or even go beyond the DS injection; I was at least able to see this happening on 7.2.10 sp1.

        Attachments

          Activity

            People

            • Assignee:
              lawrence.lee Lawrence Lee
              Reporter:
              david.nebinger David Nebinger
              Participants of an Issue:
              Recent user:
              Lawrence Lee
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                5 weeks, 1 day ago

                Packages

                Version Package