Comments (6)
Hi, I am using Gremlin Server hosting Neo4j. Since Neo4j doesn't require ids to be explicitly specified by its nodes(or vertices) therefore when I run the example I get the following error -
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'application': Invocation of init method
failed; nested exception is com.microsoft.spring.data.gremlin.exception.GremlinQueryException: unable to complete query from gremlin; nested exception is java.util.concurrent.ExecutionException: org.apache.tinkerpop.gremlin.driver.exception.ResponseException: Vertex does not support user supplied identifiers
And when I use @GeneratedValue with @ Id in Person & Relation class, and don't pass id in constructor of Person class, I get the following error -
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'application': Invocation of init method failed; nested exception is com.microsoft.spring.data.gremlin.exception.GremlinInvalidEntityIdFieldException: The vertex id for the from vertex cannot be null!
Please help
from spring-data-gremlin.
It looks like JanusGraph 0.3.0 has an option to let users supply ids as longs, but it is not recommended, based on their documentation. It is a config setting that has to be configured when the backing datastore is initialized, and cannot be changed afterward. The config flag is graph.set-vertex-id
See here: https://docs.janusgraph.org/latest/config-ref.html#_graph.
The doc says: "Whether user provided vertex ids should be enabled and JanusGraph’s automatic id allocation be disabled. Useful when operating JanusGraph in concert with another storage system that assigns long ids but disables some of JanusGraph’s advanced features which can lead to inconsistent data. EXPERT FEATURE - USE WITH GREAT CARE."
Also, user provided ids are supported only for vertices, not for edges.
I agree though that it would be better to rely on JanusGraph's internally generated ids.
from spring-data-gremlin.
@Incarnation-p-lee I pushed a PR to make ids optional PR #155
from spring-data-gremlin.
Hi, is this feature not available yet?
from spring-data-gremlin.
hi @rekon , did you fix your issue yet? I get the same issue as yours and looking for a solution to fix it now. Could you please let me know the solution to fix the issue if you did. Thanks
from spring-data-gremlin.
Closing this issue.
Because it's not active for a long time.
If anyone have similar issue, please create issue in new repo: https://github.com/Azure/azure-sdk-for-java/issues
from spring-data-gremlin.
Related Issues (20)
- Support @Query annotation for executing Custom Queries HOT 7
- Getting java.nio.channels.ClosedChannelException after an idle period of time HOT 2
- custom channalizer support ? HOT 1
- Pagination is not supported ?
- Is anyone able to get this project work with gremlin server with OrientDB graphs. HOT 2
- Feature request: Access response headers HOT 1
- about Transactional support HOT 2
- Unsupported Error: Gremlin op does not support by(traversal) HOT 2
- Caused by: org.apache.tinkerpop.gremlin.driver.exception.ResponseException: No such property: g for class: Script3 HOT 1
- When I add vertex,an exception is thrown(java.lang.IllegalArgumentException: should contain id property),but the id is automatically generated with annotations HOT 1
- Single quote is not escaped when saving/querying data HOT 1
- There is a vulnerability in spring 5.2.6.RELEASE,upgrade recommended HOT 1
- Janus
- When executing given example getting java.lang.IllegalStateException: error ... HOT 1
- Need adivce on error : Invocation of init method failed; nested exception is java.lang.NullPointerException: Name is null HOT 1
- How can we create native Gremlin query? HOT 1
- Repository deleteAllByField not supported HOT 1
- Hi, I am new to spring data gremlin. When I am saving my vertex domain entity in database using repository , its add "_classname" field with full class path. I want to know what is the usecase of this? can we stop making spring to insert it . Any help will be really appreciated.
- findByNameContainingIgnoreCase -not working in case of GremlinRepository
- Can we give 2 collection name in single application for making 2 connections through Spring Data Gremlin?
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 spring-data-gremlin.