Spring Projects Issues
Spring Projects Issues
**[Mark Paluch](https://jira.spring.io/secure/ViewProfile.jspa?name=mp911de)** commented There are a couple of aspect here: * We can serialize `Optional` but not deserialize it. * We can serialize a lot more types but not deserialize...
**[Joerg](https://jira.spring.io/secure/ViewProfile.jspa?name=matysiak)** commented Thanks for the explanation, I understand that there probably won't be a short term fix for that. Is there any workaround for that? Is it possible to register...
**[Mark Paluch](https://jira.spring.io/secure/ViewProfile.jspa?name=mp911de)** commented You can provide a `Converter` that converts e.g. `Document` to `Optional`: ```java @ReadingConverter enum MyConverter implements Converter{ INSTANCE; @Override public Optional convert(org.bson.Document document) { return Optional.ofNullable((String) document.get("value"));...
**[Dennis Doubleday](https://jira.spring.io/secure/ViewProfile.jspa?name=ddoubledayg)** commented Adding to this, I see the same error because my class is implementing org.springframework.data.domain.Auditable, so now I have to have Optional as part of the signature for ...
**[Mark Paluch](https://jira.spring.io/secure/ViewProfile.jspa?name=mp911de)** commented Introducing `leftPop` for `BLPOP` respective `rightPop` accepting multiple keys would either require a key array as the first argument or moving the key argument to the last...
**[Ben Madore](https://jira.spring.io/secure/ViewProfile.jspa?name=madorb2)** commented People have been running into this on Stack Overflow for a few years, and there has been no response from anyone: https://stackoverflow.com/questions/45590207/spring-data-rest-returns-emptycollectionembeddedwrapper-instead-of-empty-collect https://stackoverflow.com/questions/40654754/empty-collection-returns-single-object-in-spring-data-rest-instead-of-empty-arra
**[David Lopez](https://jira.spring.io/secure/ViewProfile.jspa?name=antdavidl)** commented I'm puzzled to see that this issue is reported and has not been fixed so far. IMHO, it is quite blocking as returning an empty list of...
**[David Lopez](https://jira.spring.io/secure/ViewProfile.jspa?name=antdavidl)** commented Finally, I had to adapt the solution provided in the previous links to use the types introduced by the Spring HATEOAS 1.x. ``` @Component public class ResourceProcessorEmpty...
**[Oliver Drotbohm](https://jira.spring.io/secure/ViewProfile.jspa?name=olivergierke)** commented That's actually already supported as shown in the [example here](https://github.com/spring-projects/spring-data-examples/blob/master/jpa/example/src/main/java/example/springdata/jpa/projections/CustomerRepository.java#L64). I guess the point you missed is that classes don't actually use the projection factory code path...
**[Thomas Darimont](https://jira.spring.io/secure/ViewProfile.jspa?name=thomasd)** commented Ah thanks, I missed that it works if there is a constructor. So declaring the fields of `PersonName` final works when the ctor is generated by lombok....