Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where do I start designing when using O/R mapping? Objects or database tables?

I'm starting a new database application and I wonder if it would be better to start the design at the objects (with UML) and build the database schema accordingly, or start at the design of the database (with ER) and create the objects accordingly.

What are the pros and cons of either approach?

(I dont think it matters but just in case: I'm planning to use Java and Hibernate)

like image 714
Daniel Rikowski Avatar asked Nov 08 '08 00:11

Daniel Rikowski


1 Answers

Depends on whether your application is designed to meet user needs, or to meet the needs of developers.

Start with the user stories, and get the OOP Classes straight. And your users will love you.

Otherwise you end up with an application that turns users into data entry clerks. (You'll have lots of company.)

like image 103
dkretz Avatar answered Sep 22 '22 02:09

dkretz