• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate with Custom Database

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic