Spring Projects Issues

Results 1569 comments of Spring Projects Issues

**[Heiko Scherrer](https://jira.spring.io/secure/ViewProfile.jspa?name=scherrer)** commented Do you plan a solution for all this in 2.0? I'd like to contribute!

**[Heiko Scherrer](https://jira.spring.io/secure/ViewProfile.jspa?name=scherrer)** commented see comments

**[Oliver Drotbohm](https://jira.spring.io/secure/ViewProfile.jspa?name=olivergierke)** commented The tricky bit here is to find out when to apply type constraints and when not. Unfortunately we cannot generally (even outside an inheritance scenario) enable applying...

**[Mateusz Rasiński](https://jira.spring.io/secure/ViewProfile.jspa?name=mrasinski)** commented My suggestion is stated clearly in my [pull request](https://github.com/spring-projects/spring-data-mongodb/pull/266). No other tests hurt from that change, so I believe that it would not break things. Take a...

**[Oliver Drotbohm](https://jira.spring.io/secure/ViewProfile.jspa?name=olivergierke)** commented I've seen the PR and thanks for that but removing query results is probably not the way to go. Mostly for performance reasons as you might end...

**[Mateusz Rasiński](https://jira.spring.io/secure/ViewProfile.jspa?name=mrasinski)** commented It removes the result only if they are null (you're talking about `findMultiple...()`, right?). That shouldn't be that bad, should it? EDIT: It removes the result (returns...

**[Oliver Drotbohm](https://jira.spring.io/secure/ViewProfile.jspa?name=olivergierke)** commented See the edits on my comment. Generally speaking: if a fix touches a lot of unrelated places of the codebase, it's very unlikely to be a proper...

**[Mateusz Rasiński](https://jira.spring.io/secure/ViewProfile.jspa?name=mrasinski)** commented OK, I get it. I was thinking of creating a specific query, but have thought that for performance reasons ( ;) ) finding all subclasses of the...

**[Antoine Vandecreme](https://jira.spring.io/secure/ViewProfile.jspa?name=avandecreme)** commented So, wouldn't adding the following criteria to the query in SimpleMongoRepository.findAll(Query query) solve the problem: query.addCriteria( where("_class").is(entityInformation.getJavaType().getTypeName())); The exact type name is too restrictive, but that gives...

**[Mateusz Rasiński](https://jira.spring.io/secure/ViewProfile.jspa?name=mrasinski)** commented "The exact type name is too restrictive, but that gives the idea." - that's the whole point. Imagine class hierarchy: `A` (superclass)