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. ant-build-log.txt
          7 kB
        2. FooPersistenceImpl.java
          50 kB
        3. service.xml
          1 kB

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 22 weeks, 5 days ago

                Packages

                Version Package