Code migration #16
Comments
@trainings I am finally done with the migration. The commons module is now pretty much sanatized from all object API references. All sub-modules only contain dependencies that immediately concern them. There is of course room for improvement, but I suggest that we start the API improvement after the merge. I made already some notes, will put those in separate tickets. I was also able to fix the the issues with the incompatible database factories (actually the pools) APIs (in document). There is now a common interface for the factories (instead of using the abstract parent of the database factories). The parent doesn't contain any reference to the pools, this is now completely delegated to the sub-classe... and therefor no API clashes there. As we discussed: spring-boot-orientdb is included; test-commons is gone (domain classes are back in the object module tests); We didn't talk about it, but I forgot the spring-data-web classes. These are now included in a separate module. @pires excellent demo with Shrio and Hazelcast is also included now as a first sample. @pires could you have a look at it when you have time? Everything is running, but can't authenticate... I think you fixed that already... don't remember exactly ;-) @sleroy the commons module is really small now in terms of dependencies. The only reference you normally don't have in a bare bones Spring project is spring-data-commons; but if you use only the minimum (which is the database factory in spring-data-orientdb-document) and just include the spring-data-xxx dependencies in your pom.xml then you should be fine (not tested though). All available tests are passing. @pires @trainings @lvca @sleroy when you have time please have a quick look at it and leave your comments here. But I'd suggest to finish this here as quick as possible so that the code lands in the official repository to tackle the next steps. Quicklink: https://github.com/vidakovic/spring-data-orientdb |
2 sample applications; added @trainings "hello" app. |
It is a great work. I just reviewed the spring-data-commons and document/graph part.
|
some suggestions from my side after a quick view :
@sleroy please create corresponding issue for enable/disable automatic creation and update database schema |
Tests are failing for me.
Other than that, my app is working and I'm submitting a little patch. On Thu, Dec 18, 2014 at 8:22 AM, trainings notifications@github.com wrote:
Paulo Pires |
@sleroy concerning the whole pool.acquire()/db() stuff I'd suggest that we put this in a separate ticket and discuss after the migration. Personally I think that there should be just one way to get the db (always with the pool). Not sure if I am missing here a requirement. Could you open a ticket so that we don't forget? Thanks |
@trainings I just did your point 2) and 3). Done. Concerning 1) putting the web related stuff in commons... I'm not so sure... this just drags the whole spring-webmvc dependencies with it that people with minimal requirements (who use just database factories with Spring wiring) really don't need. But if more people think that it should move there I'll do. Update: after a quick conversation with @trainings I understand now that the spring-webmvc dependencies are optional and anyway referenced in spring-data-commons. So, this is done. One module less. Thanks @trainings for the clarification. |
@pires Hmm... strange that this test is failing... can someone else confirm? They just pass here. |
@sleroy I created a ticket to not forget your point with the performance tests. |
@pires helped setting up a quick test on drone.io: https://drone.io/github.com/vidakovic/spring-data-orientdb/5 I tried a couple of things, but the 2 tests are still failing. To me it seems like a configuration issue (annotations?). @trainings If you have time would be nice if you could have a look at it. Overall I think it's not a show stopper for the PR |
If I am not mistake OrientDB can be used in an embedded mode. I am not sure On 18 December 2014 at 15:19, Aleksandar Vidakovic <notifications@github.com
|
@pires @trainings @lvca @sleroy Ok... to get things rolling: +1 from me to finish up here, do the PR and ask @lvca to merge Please have your say here. And thanks again for all the help and feedback. |
@corneil My experiments show that for version 1.7, embedded database (aka memory database) is closed (and destroyed) with the connection. Using a pool results to the destruction of the database when the pool is releasing the connection. Using a embedded database with a pool is troublesome when :
The turnaround in 1.7 is to use a Global system property of OrientDB to force embedded database memory to stay opened (KeepOpened)
Please notes that this property has been marked deprecated in 2.x. Sylvain. |
Let's PR when the build on drone.io is ok. |
@sleroy ok... have a couple of cycles left here... I am trying now locally if I can reproduce the failing tests with other JDKs... I just realized that I used a Zulu JDK 8 from Azul, might be the source why I see something different. Will come back with results. |
Just FYI: I fixed the tests https://drone.io/github.com/vidakovic/spring-data-orientdb/12 I think we can proceed with the PR tomorrow if we don't find something horribly failing. Everything is configured for the new 2.0-rc1 release. |
+1 for PR. Amazing job, @vidakovic |
+1 Real great work and involvement @vidakovic |
Closed by #21 |
Split original code in following modules:
Removed all object related classes from commons.
The text was updated successfully, but these errors were encountered: