[ https://issues.apache.org/jira/browse/DELTASPIKE-1036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John D. Ament updated DELTASPIKE-1036: -------------------------------------- Issue Type: New Feature (was: Improvement) > 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: New Feature > Components: Data-Module > Reporter: Xavier Dury > Assignee: John D. Ament > Priority: Minor > Fix For: 1.7.0 > > > 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)