-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Adding support for spring-data-couchbase #124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Ah, I see what's going on. Let's wait until @olivergierke fixes the pushing to the milestone repo and then I'll update this PR to use M2.. then the correct couchbase client is used also. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this thing be part of SD Couchbase?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it? I created it because jpa and mongo also do it like this in there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, maybe I am not too up to date with the way Boot handles this. The registrars are usually refered to from @Enable…Repositories
annotation and there should be a similarly named type in the actual Spring Data project backing this annotation. Maybe @dsyer can elaborate on this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a tricky question actually. I like the fact that Spring Boot is a one-stop shop for opinions like this one, and Michael is right, there are already 2 such implementations in Spring Boot (for JPA and Mongodb). But on the other hand Spring Data Couchbase is a relatively new project if I understand correctly, and if is not GA by the time we want to release Boot, then this code could not be included there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dsyer when do you plan to have a GA? spring data couchbase is expected to GA end of 2013. We are pretty much feature complete and only stabilising the codebase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here really. If you can get a GA release out then we can merge this whenever that happens.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So there is no chance we can get people to try it out and give feedback?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I said it was tricky. How about if we add the milestone dependency but pull out this feature from a release if the GA dates fall in the wrong order?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good to me!
I'll update this one as soon as the m2 is synced in the right repo, I dont want to add another repository definition (libs-milestone) to spring-boot. what do you think?
@dsyer hey, we'll do a 1.0 GA today of the couchbase module. Is it still possible to get - once updated - into 1.0 of boot? Or is it already closed for new features and we'll wait until the next minor? |
We'd prefer to wait for 1.0.1 if that's OK with you. Shouldn't be long coming. |
@dsyer no worries, perfectly fine for me. I'll fix up the PR as soon as 1.0 GA is out and then you can choose when to merge. I'll ping you once done. cheers! |
If we are going to have an RC5 I'll try and remember to merge this. Otherwise we'll wait for 1.0.1. |
@dsyer cool. one more question.. is the whole registrar thing gone? I checked the current impls and they more or less just add a pom.xml with dependencies.. Or do I need to implement the registrar and all of that in the spring-data package itself? |
ah okay its directly in the autoconfigure sources, gotcha. |
@daschl I'm going to back these changes out while we sort a few issues out (hopefully nothing major). If you want to send fixes probably the best is to send a PR based off commit 59a1b39. Here are some questions, and comments:
|
@dsyer I'm out this week but will sort it out next week if that is okay |
No problem. |
Okay, quick update here:
So I'll do PRs for 3 and 4 then. |
We're getting close to RC, should I push this one back to 1.2 or do you think we can still get there for 1.1? |
@philwebb hey, let's push back on this I'm running out of time and I'll do this as part of a major overhaul during summer (new spring-data-couchbase for new SDK). |
Also, people can plugin in sdc very easily anyway so its not a huge issue for them |
Sounds good. I'll move it to 1.2. Cheers. |
@dsyer Would the lazy-init option fix the CouchbaseClient connection issue? |
We got there in the end. Auto-configuration support for Spring Data Couchbase was added in 76f1ca4 which was released in 1.4.0.M1. |
This adds a starter and autoconfigure support for spring-data-couchbase!