minitwit icon indicating copy to clipboard operation
minitwit copied to clipboard

Ask for help

Open MessaoudMohamed opened this issue 9 years ago • 1 comments

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

MessaoudMohamed avatar Apr 11 '16 11:04 MessaoudMohamed

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.

eh3rrera avatar Apr 11 '16 17:04 eh3rrera