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

data-documentation missing Optional return value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.7.2
    • 1.8.1
    • Data-Module, Documentation
    • None

    Description

      http://deltaspike.apache.org/documentation/data.html lists the format for methods:
      (Entity|List<Entity>) (prefix)(Property[Comparator])

      {Operator Property [Comparator]}

      Here java.util.Optional is missing:

      "(Entity|Optional<Entity>|List<Entity>) (prefix)(Property[Comparator]){Operator Property [Comparator]}

      Or in more concrete words:
      • The query method must either return an entity or an java.util.Optional or a list of entities.
      • It must start with the findBy prefix ..."

      Attachments

        Activity

          People

            johndament John D. Ament
            jhm Jan Materne
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: