Raised as https://jira.springsource.org/browse/DATAGRAPH-209
Type: Posts; User: michaelmc; Keyword(s):
Raised as https://jira.springsource.org/browse/DATAGRAPH-209
Apologies, I couldn't describe this problem in a better way in the title. Certain NodeEntities and Relationships have nullable properties. I amended the getters in the code to return Optional<Long>...
Happy to put together a commit if you're happy with the neo:transactionhandlers namespace idea...
Michael
Thanks for the advice!
I have a component scan on and have annotated the handler with a @Component so in my case it is registered automatically.
As for how SDN should do it, I don't really have...
We want to use a (or more than 1 most probably) TransactionEventHandler in our SDN app. There doesn't seem to be an immediately obvious hook to register these using typical Spring XML application...
Thanks Michael. Makes sense - context is dirtied everytime you are running tests that don't use the spring testing rollback stuff.
I've applied to the project and uploaded, strangely the test still...
Thanks for reminding me, just been able to break it now! Try running the refer test in...
I'm a little busy today but I'll see if I can make the project on GitHub fail with the same errors I was seeing, presumably if you've all got a project you can run and see fail it might make it...
Fixed - the test wasn't working properly because in the test context I was missing:
<tx:annotation-driven mode="proxy"/>
and the non test wasn't working because I defined the annotation...
More of a general Spring question I guess....the WrappingNeoServerBootstrapper is working great locally but by design I can't see it except on localhost. To expose it to be seen from any client, I...
FYI, I've actually found a slight difference - reading through the docs:
It must not be a primitive type because then the "non-attached" case can not be represented as the default value 0 would...
If it helps, this is the particular stack trace exception at this point:
org.neo4j.graphdb.NotInTransactionException
at...
I've tried to reproduce this in a project on GitHub and annoyingly it always seems to work there.
I am confident everything is fine with my Spring setup (I've got tests that prove that a simple...
Annoyingly I've written a bunch of unit tests which all work perfectly with my sample application on github, which makes what I am running into even weirder. I've put the github stuff in as I think...
Thanks Michael,
Just putting a tets up into GitHub now. The dependencies are almost the same as the hello world example, and my app context is as follows:
<?xml version="1.0" encoding="UTF-8"...
This kind of follows on from this this post here (http://forum.springsource.org/showthread.php?121573-Best-practices-for-persisting-relationships-with-properties)
What I am trying to do is have...
No problem - raised. I changed the single relationship to be a Set to get around this limitation, and I find that both nodes are set, and the relationship is navigable from either side. Happy days!
...
Made this into a gist for easier reading:
https://gist.github.com/1663559
Thanks for the help with this - must have missed that in the docs. I setup a unit test and actually didn't get this to pass, the unit test can be found here -...
It'd probably look a little strange in our model as that property is a long in all the other systems where it is used, but on the plus side it would mean we could have a findByMemberId method in the...
There is at least one case I can think of where it is useful that a relationship is zero or one rather than a collection - the typical case of a referrer/referee relationship, whereby I may refer...
That definitely makes sense, thank you. I've gone with option 3, but taking the Person and creating the Friendship within the method. It seemed like the most natural in the domain-driven sense...
Thanks Michael, they all seem like pretty good options to me, did you have a personal preference?
Presumably I wouldn't actually need the template at all in the third case, if I added the friend...
Just to be clear, I'm looking at this page in the documents - http://static.springsource.org/spring-data/data-graph/snapshot-site/reference/html/#tutorial_relationships.
Role role =...
I think I think found other info on the boards about this - http://forum.springsource.org/showthread.php?118209-Indexed-Numeric-values-in-Cypher-queries-not-working&highlight=cypher+numeric
I've...