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

Service Builder generates incorrect PersistenceImpl when column name equal to the entity name

    Details

    • Fix Priority:
      3

      Description

      With service.xml attached, Service Builder generates FooPersistenceImpl.java with a lot of errors.

      Service Builder doesn't check column naming and generates methods like;
      protected Foo getByFooFinder_PrevAndNext(Session session, Foo foo, String foo, OrderByComparator orderByComparator, boolean previous) with 2 variables with the same name.

        Attachments

        1. service.xml
          1 kB
        2. FooPersistenceImpl.java
          50 kB
        3. ant-build-log.txt
          7 kB

          Activity

            People

            Assignee:
            michael.saechang Michael Saechang
            Reporter:
            psavinov Pavel Savinov (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              5 years, 8 weeks, 5 days ago

                Packages

                Version Package