使用O / R映射时,我在哪里开始设计?对象或数据库表? [英] Where do I start designing when using O/R mapping? Objects or database tables?
问题描述
任何一种方法的优点和缺点是什么?
(我不认为事情,但以下情况:我打算使用Java和Hibernate)
取决于您的应用程序是否设计为满足用户需求或满足开发者的需求。
从用户故事开始,直接获得OOP类。而您的用户将会爱上您。
否则,您最终会将用户转变为数据输入文员。 (你会有很多公司。)
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)
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.)
这篇关于使用O / R映射时,我在哪里开始设计?对象或数据库表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!