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

BlobModels are repeatedly added to the module-hbm.xml

    Details

      Description

      When running gradle buildService in a module with blobs an element like:

      <class lazy="true" name="com.liferay.document.library.content.model.DLContentDataBlobModel" table="DLContent">
          <id column="contentId" name="contentId">
              <generator class="foreign">
                  <param name="property">com.liferay.document.library.content.model.impl.DLContentImpl</param>
              </generator>
          </id>
          <property column="data_" name="dataBlob" type="blob" />
      </class>

      is added to the module-hbm.xml.

      Service builder will keep adding this element each time it is run. This is causing this pull request to fail (see logs).

      After some investigation, I believe the root of the problem is in these lines which do not take into account the lazy attribute present in the snippet above (<class lazy="true"...).

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 2 weeks, 3 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP33
                  7.0.0 DXP SP7
                  7.0.5 CE GA6
                  7.0.X
                  7.1.X
                  Master