Mohamed Taher Alrefaie
Mohamed Taher Alrefaie

Reputation: 16253

Is there any generic DAO written for GraphAPI for OrientDB?

OrientDB seems promising. Is there any well-written generic DAO for accessing the graph API? There are some snippets here and there in this page but no concrete GenericDAO class implemented.Writing it is not a major problem. I was just checking if there is already something implemented.

Upvotes: 2

Views: 524

Answers (2)

gjrwebber
gjrwebber

Reputation: 2658

This is a pretty old question, but I thought I would introduce spring-data-gremlin as a solution which uses both Tinkerpop and Spring Data to solve this issue.

Upvotes: 0

rmuller
rmuller

Reputation: 12859

A classical DAO pattern is used to abstract away the low level (database) details for the business layer. It is mainly used in the context of CRUD based applications using a RDBMS.

Because a Graph Database is a different beast, typically used in different contexts, i do no think a DAO pattern is a good fit for it. However, an abstraction layer might be a good decision depending on you use case. There are two good examples of such abstraction layers for Graph Databases:

  • Tinkerpop. OrientDB implements the Blueprints API directly (Warning: Tinkerpop 3 is not supported)
  • Spring Data. An excellent implementation for Neo4j exists. However, the OrientDB support is not that good

Upvotes: 1

Related Questions