Spring data Neo4j with JSF Java application - neo4j

I would like to use Spring Data Neo4j but I want use only this part of Spring. All my web application I want to build with JSF framework. I have problems to mix Spring Data Neo4j and JSF. Is it possible or is is worth to use spring data Neo4j instead of OGM Neo4j? Maybe is better to stay with simple OGM driver in my case?

Related

Difference between Spring Data Neo4j 3.4.0.RELEASE and 4.0.0.RELEASE

Currently, there are two SDN releases:
Spring Data Neo4j 3.4.0.RELEASE
Spring Data Neo4j 4.0.0.RELEASE
Spring Data Neo4J
What is the point to have them both?
Which one should I use in my application ?
Spring Data Neo4j 4 is the newest version, a complete rewrite from scratch focussing on Neo4j server, see also:
http://neo4j.com/developer/spring-data-neo4j/
It builds on top of a pure Java OGM which uses the server transport and will use the binary protocol in the future.
There are migration notes for people coming from SDN 3
If you are starting a new project go with SDN4

difference between storing data into neo4j graph database using Java and Spring?

I'm little confuse that if my project is on Spring and I want to use neo4j with java not with Spring Data .
what is a good practice ?
Thanks
You have another options for your Java app. I assume you are talking about client application, not about extension for Neo4j.
One option is to use REST API from your application. As a client you can use Jersey client and another REST client, which you like.
Another option is to use OGM, which is Object Graph Mapping Library, like Hibernate for rdbms. https://github.com/neo4j/neo4j-ogm
OGM for Neo4j is now separated from Spring : https://github.com/neo4j/neo4j-ogm. So you don't have to use Spring Data and can still use OGM (or even stick with Core Java API if you want). But Spring Data has some nice features (i.e. repositories) so if I were you I would give it a try.
If you're using spring, best practice would probably be to use spring-data-neo4j, because its integration with the rest of spring is quite nice. That being said, of course you don't have to. You have the options listed by others, and of course you can use the native Java API.
If you've already taken the step to use spring, in general I'd recommend using spring-data-neo4j unless you have a compelling specific requirement not to.

Difference between Spring rest and Spring Data

I am using Neo4j SDN for grails , What is the difference between SDN rest and ('org.springframework.data:spring-data-neo4j-rest:3.2.0.RELEASE')
Simple SDN 'org.springframework.data:spring-data-neo4j:3.2.0.RELEASE'
Spring Data Neo4j - REST is a wrapper around the Neo4j REST APIs to have SDN talk to a Neo4j Server.
The currentl implementation is not really good, the next Milestone 3.3.0.M1 will address a lot of that.

Neo4J - Spring Boot - Spring Security - Java Config

Where can someone find an example of users and authorites (roles) stored in a Neo4J DB other than Cineasts that is using old versions of Spring Data Neo4J (SDN). I would prefer it if its only Java Config (no xml) and is using the latest versions of Spring Boot - Spring Security and SDN. Google search does not bring up anything. It will be of great help if someone creates a seed app for this.
https://github.com/pvlastaridis/Neo4JHipster
At last I ve made it. A full authenticated rest app with Neo4J spring-boot and spring-data-neo4j. It is based on fantastic yo generator JHIPSTER. Thank you jhipster. Looking forward for the next update of Spring Data Neo4J so we can have it on a remote Neo4J server.

How to use the Spring Security Core Plugin with the Neo4j GORM plugin

I am trying to use the Spring Security Core plugin in a Grails project using the Neo4j GORM plugin.
As far as I can see I have two options:
Use the Spring Security Core plugin as is and persist it's data to say MySQL while using Neo4j for the rest of the application data.
Use a custom UserDetailsService.
Does anyone have an example of the latter?
pjdv
You mean like the one in the documentation? http://grails-plugins.github.com/grails-spring-security-core/docs/manual/guide/11%20Custom%20UserDetailsService.html
Since the Neo4j plugin is GORM compliant, spring-security-core's GormUserDetailsService should work out of the box.

Resources