You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Gerhard Petracek (JIRA)" <ji...@apache.org> on 2015/12/03 21:35:11 UTC

[jira] [Updated] (DELTASPIKE-1036) Repositories should support java.util.Optional as return type

     [ https://issues.apache.org/jira/browse/DELTASPIKE-1036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerhard Petracek updated DELTASPIKE-1036:
-----------------------------------------
    Assignee: Thomas Hug

> Repositories should support java.util.Optional as return type
> -------------------------------------------------------------
>
>                 Key: DELTASPIKE-1036
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1036
>             Project: DeltaSpike
>          Issue Type: Improvement
>          Components: Data-Module
>            Reporter: Xavier Dury
>            Assignee: Thomas Hug
>            Priority: Minor
>
> 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).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)