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

Service builder skips culumns in "mapping-table" tables declared as entity

    Details

      Description

      If one declares a mapping-table as one of the tables declared as entities, service builder will create all elements correctly: model hints, indexes, tables.

      However, although it creates model hints and services correctly,  the table in tables.sql is always overwritten with one that only has the primary keys, regardless  of the columns described in the entity.


      To reproduce:

      1. Declare 2 entities, with a mapping-table specified.
      2. Declare an entity as the mapping table, adding the primary keys of the 2 entities and a companyId with an extra column.

      Expected:

      All elements should be created with the extra column in the mapping table: hints, table, services...

       


      Observed:

      All elements are created as expected, except for tables.sql, which skips the extra column.

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            victorlima02 Victor de Lima Soares
            Participants of an Issue:
            Recent user:
            Victor de Lima Soares
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              6 weeks, 3 days ago

                Packages

                Version Package