• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate with Custom Database

 
Ra Carter
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How would one use hibernate with a custom unknown database?

I want to make my own database just for the fun of doing it. It may just write information to a file or something at first but I would like it to appear as a relational database. As I improve the implementation I don't want to change my business logic for my program, it should just use the standard Hibernate APIs.

Do I need to write a JDBC driver for hibernate? Are there any other interfaces that I need to implement? I was briefly looking this up but I am new to hibernate in general so I wasn't sure where to go. If someone could point me to the correct documentation for doing something like this I would also be grateful.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A big job!

The Hibernate part is actually quite a small bit, all you will need is a dialect implementation, unless you write this custom database using the same SQL syntax as an existing one. The bigger part is you will need to write a JDBC driver implementation.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic