crnk-project / crnk-framework

JSON API library for Java
Apache License 2.0
289 stars 154 forks source link

crnk service app connecting to neo4j? #766

Open adellalin opened 4 years ago

adellalin commented 4 years ago

can crnk repositories like JpaEntityRepositoryBase or ResourceRepositoryBase be set up to connected with neo4j (via spring-data-neo4j) ?

remmeier commented 4 years ago

Hi, in general repositories can make use of any kind of data store. So if you write an implementation for neo4j (with spring-data or else), that will work well. The various repositories can then also be mixed/linked through relationships. Inclusions and other relationship features will then work across repositories. For JPA crnk comes already with crnk-data-jpa. For neo4j there is as of yet no built-in implementation, but contributions are welcome. Like jpa it should then not assume any underlying framework, but go directly against the neo4j api, not everybody uses spring and crnk tries to be agnostic to that.