Skip to content
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

Ask for help #1

Open
MessaoudMohamed opened this issue Apr 11, 2016 · 1 comment
Open

Ask for help #1

MessaoudMohamed opened this issue Apr 11, 2016 · 1 comment

Comments

@MessaoudMohamed
Copy link

How can i change the HSQLBD with orientdb Graph ?
Thank you

@eh3rrera
Copy link
Owner

Hi @messaoudmoha,

I can't help you much because I don't know about graph databases. Well, I read a little bit on its website and I see that is like a hybrid document database that can connect documents like a relational database, so I don't know for sure if a direct mapping (user table -> user document) could work.

What I can tell you is that:

  • You can find the structure of this application's database in src/main/resources/sql.
  • You will have to add the driver for the OrientedDB database.
  • You will have to change the implementation of com/minitwit/dao/impl/MessageDaoImpl.java and com/minitwit/dao/impl/UserDaoImpl.java so the methods of those DAOs can work with OrientDB without breaking the interface contract (if a method returns a list of User objects, somehow the new implementation has to return it too).
  • You will have to change the dataSource() method of com/minitwit/config/DatabaseConfig.java so it returns a data source to an OrientDB database.

Sorry, I cannot help you with more implementation details because I don't know this database, but let me know if this helps you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants