Action required: API changes coming in Spring Data Commons' RepositoryFactorySupport

12 views
Skip to first unread message

Oliver Gierke

unread,
Apr 29, 2015, 6:38:41 AM4/29/15
to spring-...@googlegroups.com
Hi all,

in the context of DATACMNS-542 [0] we needed to slightly change the API in RepositoryFactorySupport. The following steps are needed to get your projects up to the new API:

1. getTargetRepository(…) now takes a RepositoryInformation rather than a RepositoryMetadata. That should just be a signature change as RepositoryInformation is a subtype of RepositoryMetadata.
2. getTagetRepository(…) should then use getTargetRepositoryViaReflection(…) to make sure the base class customizations exposed in the configuration are picked up.
3. Your @Enable…Repositories annotation needs to get a new Class<?> repositoryBaseClass() attribute and default to DefaultRepositoryBaseClass. XML configuration is augmented automatically as we just added an additional attribute to the namespace definition in Spring Data Commons.

You can find an example of the adapting changes needed in the JPA feature branch [1].

I already created tickets and have local fixes for Spring Data JPA, MongoDB and Neo4j (master branch). Please go ahead, create tickets for the adaption and link them to DATACMNS-542 as that's how I can keep track of the progress of us adapting to that API. I haven't pushed anything to Spring Data Commons master but plan to do so by the end of the week. Just wanted to give you a bit of time to prepare as pushing the changes to SDC will inevitably break all of your builds.

Any questions?

Finally, here's [2] the diff of the docs to give you an impression how much the changes in SD Commons actually simplify the customization.

John Blum

unread,
Apr 30, 2015, 2:58:08 PM4/30/15
to Oliver Gierke, spring-...@googlegroups.com
Spring Data GemFire is good to go.

--
You received this message because you are subscribed to the Google Groups "Spring Data Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-data-d...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
-John
john.blum10101 (skype)

Oliver Gierke

unread,
May 4, 2015, 8:33:44 AM5/4/15
to spring-...@googlegroups.com
Push to Spring Data Commons coming…
Reply all
Reply to author
Forward
0 new messages