[ https://issues.apache.org/jira/browse/DELTASPIKE-1252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Matèrne reopened DELTASPIKE-1252: ------------------------------------- You left the textual explanation in adoc:473 instead: * The query method must either return an entity or a list of entities. should: * The query method must either return an entity or an Optional of an entity, a list of entities or a stream of entities > data-documentation missing Optional return value > ------------------------------------------------ > > Key: DELTASPIKE-1252 > URL: https://issues.apache.org/jira/browse/DELTASPIKE-1252 > Project: DeltaSpike > Issue Type: Bug > Components: Data-Module, Documentation > Affects Versions: 1.7.2 > Reporter: Jan Matèrne > Assignee: John D. Ament > Priority: Minor > Fix For: 1.8.0 > > > http://deltaspike.apache.org/documentation/data.html lists the format for > methods: > (Entity|List<Entity>) (prefix)(Property[Comparator]){Operator Property > [Comparator]} > Here java.util.Optional is missing: > "(Entity|Optional<Entity>|List<Entity>) > (prefix)(Property[Comparator]){Operator Property [Comparator]} > > Or in more concrete words: > • The query method must either return an entity or an java.util.Optional > or a list of entities. > • It must start with the findBy prefix ..." -- This message was sent by Atlassian JIRA (v6.3.15#6346)