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

Create a Comparator for Group that sorts by name (or groupKey) and is usable with DynamicQuery

    Details

    • Priority Level:
      Low

      Description

      Description
      Currently, the only existing Comparators for the Group_ table that attempt to sort by the name of the group are the GroupNameComparator and the GroupTypeComparator. However, both of these Comparators sort by the "groupName" column - a column which doesn't actually exist in the database and only exists as a temporary column used in some of Liferay's Finder methods. This means that these Comparators cannot be used with some API such as DynamicQuery, since the API isn't creating this same temporary column. It would be nice if one of the following two things could happen:

      1. A new Comparator would be created (for instance, a GroupKeyComparator) which sorts by the group name using a column(s) that already exists in the database.
      2. The Finder methods would be modified so as not to create a temporary groupName column. Then, the GroupNameComparator and GroupTypeComparator could be modified to sort using a column(s) that already exist in the database.

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              michael.bowerman Michael Bowerman (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Packages

                Version Package