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

Repositories should support java.util.Optional as return type

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.0
    • Data-Module
    • None

    Description

      I don't know what is deltaspike's strategy regarding support of java 8 features but it would be nice if repositories could use Optional<T> as return type.

      When using @Query, there would be no need to specify singleResult = OPTIONAL.

      It would be nice if deltaspike could gradually support java 8 features a bit like how spring does (if java.util.Optional is present on the classpath, then it can be used in various places, otherwise features relying on it are not usable).

      Attachments

        Activity

          People

            johndament John D. Ament
            kalgon Xavier Dury
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: