Comments (11)
A good point to start would be to migrate the following Ferma 2.x examples: https://github.com/Jotschi/graph-ogm-examples/tree/master/ferma
from ferma.
Hey guys, I'm working on trying to integrate Ferma with OrientDB in our company's product. I'd be happy to help build out an example using orientdb if someone can help me understand why I get NullPointer exceptions using annotation based traversals as is laid out in the current Readme.md
from ferma.
from ferma.
@deepthought42 Using Ferma with OrientDB should be no problem. We use it with OrientDB 2.2.x gentics/mesh - I also build an example to use it with the Tinkerpop 3.x API. https://github.com/Jotschi/vertx-graphql-example
An example using the new OrientDB 3.0.1 release / Graph API would be welcome I guess.
from ferma.
I feel like a shmuck. I had been battling this problem all day and simply spinning up a fresh database server seems to have fixed the problem. I definitely appreciate how quick you guys were at getting back.
@Jotschi I found the project interesting. I haven't heard of gentics/mesh before but it looks like a really cool project. I'll definitely be digging into it and your example a bit more.
I still plan to put together an example of how I used ferma with orientdb, if that's something you still need.
from ferma.
@deepthought42 Make sure to use OrientDB 3.0.1 and the new Graph API - https://orientdb.com/docs/3.0.x/release/3.0/What-is-new-in-OrientDB-3.0.html#new-database-administration-access-and-pooling-api - As well as Tinkerpop 3.x - I would be interested in an example. I have not yet had time to test TP 3 support of OrientDB 3.0.0 although the vertx-graphql-example is already using TP3 using an OrientDB 3.x milestone release
from ferma.
@Jotschi not a problem. I'm well on my way with it. I have run into a slight problem though. With OrientDB 3.0.1, and the latest maven releases for ferma and ferma-orientdb I ran into the issue that everything executes correctly, but nothing actually gets saved to the database when I use OrientTransactionFactoryImpl. Oddly enough, if I use DelegatingFramedGraph everything saves without issue. Have you experienced this issue before? There's nothing in the ferma-orientdb codebase that stands out to me as problematic. The only thing I can think of is maybe it has something to do with the transaction wrapper, but I'm not familiar enough with the code to be sure.
from ferma.
@deepthought42 No that does not ring a bell.. sorry. I just know that the transaction handling has been touched in OrientDB 3.x Maybe that had an effect on the implementation. Some transaction handlers may require you to actively invoke tx.success();
Otherwise close()
for try-with-resouces will not invoke commit()
. I hope that I will soon have some time to work on the migration to OrientDB 3.x for Gentics Mesh. Tests are already looking great but I still have some issues with clustering.
from ferma.
@Jotschi I ran into another issue when putting together examples. I generally like having an example for every way a tool can be used, so I started creating examples using abstract classes, interfaces and concrete classes. For some reason using annotations with concrete classes will allow me to save a vertex, but it won't save any of the properties or create edges for an adjacency. Have you experienced this before?
from ferma.
from ferma.
No problem the repo can be found here. https://github.com/deepthought42/orientdb3-ferma
I'm not entirely sure where the problem is. As I said, it's not saving the properties on the concrete class. The peculiar thing to me is that my test passes as if the property were there.
I would expect that line to fail instead of passing since I'm not seeing the name property on the Pet vertex in the database.
from ferma.
Related Issues (20)
- Remove .gitreview
- Update license header
- Allow @GraphElement to take a value HOT 9
- Support pluggable classloaders for AnnotationFrameFactory HOT 5
- Frames should use traversals to manipulate the graph HOT 1
- Strange behavior of class casting. HOT 3
- Feature request: Adding label to a vertex HOT 1
- Client driver version on ferma 3 HOT 4
- How to handle detached elements with Ferma? HOT 7
- project status HOT 2
- @Property on member variable instead of getter/setter HOT 1
- AWS Neptune Support? HOT 9
- Change Vertex Label HOT 1
- Not persisting to JanusGraph HOT 8
- Ability to add keyValues on Edge and Vertex Creation HOT 1
- Ability to add labels on Vertex HOT 4
- Sort/Order By? HOT 2
- Dependency reflections 0.9.12 doesn't add scanners on empty urls HOT 1
- kind.newInstance() deprecated since Java 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ferma.