[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15138608#comment-15138608 ]
Tilmann Zäschke commented on JDO-751: ------------------------------------- I completely agree with the answers. Just to clarify the first question: I see that 'Optional' should be allowed to reference persistence classes (as FCOs) as well as SCOs (such as String, ...). But I guess Optional itself should not be a persistent type? Also, I think we have to decide whether we want to distinguish the case that the reference to Optional could be null vs Optional references a null: {{private Optional<Date> date;}} -> {{date==null}} vs {{date.isPresent}}. This is also important for queries, because again {{"date==null"}} would mean something different than {{"date.isPresent()"}} > Support for Java8 Optional > -------------------------- > > Key: JDO-751 > URL: https://issues.apache.org/jira/browse/JDO-751 > Project: JDO > Issue Type: New Feature > Components: specification, tck > Reporter: Andy Jefferson > > java.util.Optional provides a feature that is available in other languages. > Since JDO 3.2 will be for Java8+ then it makes sense to add support for this > as a "supported persistable type" -- This message was sent by Atlassian JIRA (v6.3.4#6332)