Xavier Dury created DELTASPIKE-1036:
---------------------------------------
Summary: 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
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)