mybatis 使用场景
2016-04-13 16:47
295 查看
1.Database design is often a separate function (with separate management) from OO domain design
数据库设计和oo业务设计分离的情况
2.Database designers do not have OO tools (like inheritance), so they don't think in OO terms
因为数据库设计和 oo业务设计不同(数据库设计没有继承),所以数据库设计不能像oo一样设计
3.Application designers do not have complete control over the final form of database tables. For example, the data that seems to fit in one object for the application, may be split into several tables in the database.
在应用层,有可能一个业务对象,对应的是数据库中若干表。
4.The database design often ends up quite different from the OO design, leading to a significant mismatch between tables and objects.
数据库设计出来的表和应用中oo设计分歧很大
Hibernate 的设计哲学
以应用中的业务oodesign 为中心,强制要求表的schema 遵循 oo 设计的业务模型。并且业务的推进,都是以业务对象为中心。
数据库设计和oo业务设计分离的情况
2.Database designers do not have OO tools (like inheritance), so they don't think in OO terms
因为数据库设计和 oo业务设计不同(数据库设计没有继承),所以数据库设计不能像oo一样设计
3.Application designers do not have complete control over the final form of database tables. For example, the data that seems to fit in one object for the application, may be split into several tables in the database.
在应用层,有可能一个业务对象,对应的是数据库中若干表。
4.The database design often ends up quite different from the OO design, leading to a significant mismatch between tables and objects.
数据库设计出来的表和应用中oo设计分歧很大
Hibernate 的设计哲学
以应用中的业务oodesign 为中心,强制要求表的schema 遵循 oo 设计的业务模型。并且业务的推进,都是以业务对象为中心。
相关文章推荐
- Spring和Mybatis整合,配置文件
- Repeater 横向显示数据
- Android Wear SDK 中文 ---- 创建表盘 [Creating Watch Faces]
- 写技术文章必备的几个小工具
- 学习OpenGL(五)绘制多边形
- iOS手势滑动返回
- RTImageAssets:自动生成全尺寸icon以及2x/3x图片
- Android自定义View之刮刮卡效果
- mobiscroll 破解
- 用Java实现线性表中的顺序存储的学习和源码(合并两个线性表)
- Direct2D Intro - Retrieve the Frames from an Image
- 直接拿来用!最火前端开源项目
- 【转载】第一次使用Android Studio时你应该知道的一切配置(二)
- 发展中的生命力——Leo鉴书69
- 吐血贡献——centos6.5 64位静默安装oracle 10G R2
- AndroidTest Espresso初步体验
- 自定义手势按住不动可以移动另一个,取消按下的状态就不移动了(做游戏可以用吧)4-13
- Map
- 程序员需要具备的基本技能
- 安卓github项目