I'm trying to have spring-data-solr and spring-data-rest-webmvc work together. Apologies in advance if I'm doing something wrong, or missing some configuration/setting, there doesn't seem to be any great examples on the web of integrating these two components. From what I can see, after setting breakpoints and debugging things in my local environment, the mappingContext is not being set by org.springframework.data.solr.repository.support.SolrRepositoryFactoryBean, which results in the following exception when running queries against my solr-repositories:
From my debugging:
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport:getPersistentEntity() is returning null because the mappingContext is always null.
I'm attaching a simple patch that "fixes" things and makes it work, but, I'm not familiar enough with the code base to know if its the "right" fix. There's probably a better place to call setMappingContext than where I added it, it was mostly just a test to see if that fixes things, and sure enough it does.
Can someone look at this asap and commit a proper fix?