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

Service Builder is not generating implementations for com.liferay.portal.kernel.model.BaseModel.cloneWithOriginalValues() on *ModelImpl nor *Wrapper

Details

    Description

      The Service Builder tool is not generating the implementations of the cloneWithOriginalValues() method in the ModleImp and Wrapper classes for the entity.

      I am using Eclipse as the IDE and running the buildService gradle task to generate the service code.

      Steps to recreate

      1. Create new Liferay workspace targeting 7.4 GA1, i.e. liferay.workspace.product = dxp-7.4-ga1 in the gradle.properties
      2. Copy service.xml from 7.3 project and change the DOCTYPE attributes to reflect 7.4
      3. Assuming no existing code exists, generate the service code using buildService
      4. Perform Gradle Refresh and you should see compile errors because the cloneWithOriginalValues() method is not implemented

      Expected behaviour

      • The service builder should generate the implementation for these methods as they are boilerplate and very similar to existing methods generated by the tool

      Attachments

        Activity

          People

            kevin.valencia Kevin Valencia
            peter.richards Peter Richards
            Rafaela Nascimento Rafaela Nascimento
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              23 weeks, 2 days ago

              Packages

                Version Package
                Master