• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Authors: Hibernate's effect on data modelling

 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm curious if you have a view on the appropriateness (or otherwise) of Hibernate's effect on database design? The Hibernate team are adamant that valid ER design models can be arrived at working from the object model and imposing this on the database, and they suggest such things as table-per-class-hierarchy as valid choices for your ER design. This seems to me to be at direct odds with traditional ER modelling, introducing redundancy and weakening data constraints. Does your book cover using Hibernate as a driver for data model design?
 
Patrick Peak
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The book approaches data modeling really from the same approach that we (the authors) approach it. We don't really do much discussion about the indepth theory of data/ER modeling either. Hibernate in Action has, in my opinion, already sufficiently covered the ORM theory ground.

Most of the examples we work from are Object->Database. We start with the object model, then generate the mapping schema and database tables. Obviously, we need to impose some sort of sanity and not do crazy irrational and poorly normalized database schemas, but from our perspective as non-DBA's it seems to work pretty well.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic