Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-709

New features for Query Expressions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Data-Module
    • None

    Description

      It will be nice if query expressions has the following features:

      Support aggregate functions. Examples:

      Long countByName(String name);
      Long countDistinctByName(String name);
      Double sumPriceByCategory(Category category);
      BigDecimal avgPriceByCategory(Category category);
      

      Support remove expressions. Examples:

      void removeByName(String name);
      void removeById(Long id);
      

      Support TOP and FIRST. Examples:

      void findTop10ByName(String name);
      void findFirst10ByName(String name);
      

      Support GROUP BY and HAVING clauses. Examples:

      List<Product> findByNameGroupByName(String name);
      List<Product> findByNameGroupByNameHavingNameLike(String name);
      

      Attachments

        Activity

          People

            danielsoro Daniel Cunha
            julianomqs Juliano Marques
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: