• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connecting to various DB's

 
Tom Boyce
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to construct an interface that will write to a variety of database schema's. In other words, you have an application that needs to talk to a database. The database may already be in existance (based on industry standards), but the schema may vary.

Can hibernate be used to construct a service to map the application to any database?
 
Christian Bauer
author
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, this works to limit (or at least, makes sense). It really depends on the flexibility of your tool, and its features. I'd say that Hibernate2 satisfies most requirements for legacy database mapping, Hibernate3 has much improved support and should be the most flexible ORM solution that exists.

This doesn't mean its perfect, but all sane data models can be easily mapped to object models. Sometimes it might be easier to fix the database once (and for all) than working around a particular problem for months.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic