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

Service Builder adds columns with db-column name as badColumnNames even if db-name is valid

    Details

      Description

      Steps to reproduce:

      1. Follow the steps to create a new model entity with service builder
      2. In the service.xml, add at least one column with a db-name argument, to force the db name to be different from the entity field name in the code. Use a valid column name.
      3. Run buildService with the latest service builder plugin
      4. Open the <EntityName>PersistenceImpl.java autogenerated class and scroll down to the bottom to find the _badColumnNames variable

      Expected behaviour: the _badColumnNames variable contains only actual bad column names, defined in the bad_column_names.txt file of the Service Builder (e.g. uuid)

      Current behaviour: the _badColumnNames contains the name of the column with the db-name attribute, even though it is correct.

       

      This issue causes the autogenerated <EntityName>PersistenceImplTest.findAll tests fail.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brian.chan Brian Chan
                Reporter:
                eduardo.garcia Eduardo García
                Participants of an Issue:
                Recent user:
                Clarissa Velazquez
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  9 weeks, 6 days ago