• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ORM on an unrefactored, badly normalized database

 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys! I've been studying hibernate again since we're not being given any task as of the moment. Most tutorials on ORM would give an example of how to map a class member to a database table field. But this is easy if you're doing everything from the ground up. What if there is an already existing database? Would it be as comfortable to map your objects as you would do when you start from zero? Thanks!
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sometimes you can't avoid working with a badly designed data model (I'm currently working with one that might be the worst I've ever seen). Hibernate forces proper realtional rules on your data model, unavoidable things like an entity must have a primary key etc. But you can normally code your way round most of these issues. My advice it to try to drip feed fixes for the ER model as you go.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic