-
Notifications
You must be signed in to change notification settings - Fork 26
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
Not persisting to JanusGraph #54
Comments
My bad, I made a basic mistake , I had to perform: This should be the part of FramedGraph on every add and other operations. The only thing left is , I did not get the Id property back. |
Glad you fixed this
…On Fri, Oct 19, 2018 at 5:50 PM oodles-arvind-das ***@***.***> wrote:
My bad, I made a basic mistake , I had to perform:
framedGraph.tx().commit();
This should be the part of FramedGraph on every add and other operations.
The only thing left is , I did not get the Id property back.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#54 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AWNYb3whPTM7aoKtDUwTJTSNaPJV6Kkdks5umfTHgaJpZM4Xwchq>
.
|
Thanks , can you guide me how can I get the currently saved object's Id back ? |
Sure, but that will need to wait till im back home behind my desktop.
…On Fri, Oct 19, 2018 at 6:33 PM oodles-arvind-das ***@***.***> wrote:
Thanks , can you guide me how can I get the currently saved object's Id
back ?
Commit is a void operation and it does not return anything and also
transaction is closed. Getting id property which is assigned by the graph
is highly needed.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#54 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AC5JAh3pEdGykRhjsT2B5dLzZ4T0nFKsks5umf7jgaJpZM4Xwchq>
.
|
Got it, had to tinker a little, I should not be running too fast in asking questions without having tried out everything, but got it fixed.
Since usage of Spring Framework wraps you in chains and you always expect that id returned from DB is automatically mapped to the id property of the entity, that took some time for me to come out of that world. |
Though this thread is closed now, I saw a behavior here, If I have my non abstract class and then ofcourse non abstract properties, ferma persists the node but not the properties. Is that the expected behavior ? Following class is persisted without properties
|
From the documentation this works
But why there is so much boilerplate code for getProperty and setProperty, and Post class instance is not able to have its own states, everything is driven by behavior (methods) and states are attained by the @Property annotation . Please help me understanding that . |
I am trying to use ferma ORM for my project . Current problem is, I am not able to persist my entities to JanusGraph DB.
Here is my code Required :
Entity Class
This is how I create/initialize my DelegatedFramedGraph bean:
JanusGraph is initialized :
When I try to persist it:
Nothing is stored to JanusGraph, not sure where is the problem.
Can somebody help me ?
The text was updated successfully, but these errors were encountered: