ibatis sql maps指導(dǎo)------文獻(xiàn)翻譯.doc
約20頁(yè)DOC格式手機(jī)打開(kāi)展開(kāi)
ibatis sql maps指導(dǎo)------文獻(xiàn)翻譯,簡(jiǎn)介這個(gè)簡(jiǎn)短的教程將帶領(lǐng)你通過(guò)一個(gè)典型的sql map演練,教程中的每一個(gè)主題的細(xì)節(jié)部分您都可以在官方網(wǎng)站http://ibatis.apache.org中的sql map開(kāi)發(fā)者指南中找到。準(zhǔn)備使用sql mapsql map 架構(gòu)能應(yīng)用于設(shè)計(jì)不好的數(shù)據(jù)庫(kù)模型甚至是設(shè)計(jì)不好的對(duì)象模型。盡管如此,您在設(shè)計(jì)數(shù)據(jù)庫(kù)模型和對(duì)象...
內(nèi)容介紹
此文檔由會(huì)員 wanli1988go 發(fā)布
簡(jiǎn)介
這個(gè)簡(jiǎn)短的教程將帶領(lǐng)你通過(guò)一個(gè)典型的SQL Map演練,教程中的每一個(gè)主題的細(xì)節(jié)部分您都可以在官方網(wǎng)站http://ibatis.apache.org中的SQL Map開(kāi)發(fā)者指南中找到。
準(zhǔn)備使用SQL Map
SQL Map 架構(gòu)能應(yīng)用于設(shè)計(jì)不好的數(shù)據(jù)庫(kù)模型甚至是設(shè)計(jì)不好的對(duì)象模型。盡管如此,您在設(shè)計(jì)數(shù)據(jù)庫(kù)模型和對(duì)象模型時(shí),還是應(yīng)該遵循最佳的設(shè)計(jì)原則。這樣,您會(huì)獲得更好的性能和更簡(jiǎn)潔清晰的設(shè)計(jì)方案。
設(shè)計(jì)最容易開(kāi)始的地方是分析應(yīng)用的業(yè)務(wù)邏輯。分析什么是應(yīng)用的業(yè)務(wù)對(duì)象,什么是數(shù)據(jù)模型以及兩者之間的關(guān)系。作為快速入門(mén)第一個(gè)例子,我們使用一個(gè)簡(jiǎn)單的 JavaBean Person 類(lèi)。
Introuction
This brief tutorial will take you through a walkthrough of a typical use of SQL Maps. The details of each of the topics below can be found in the SQL Maps developer guide available from http://ibatis.apache.org
Preparing to Use SQL Maps
The SQL Maps framework is very tolerant of bad database models and even bad object models. Despite this, it is recommended that you use best practices when designing your database (proper normalization) and your object model. By doing so, you will get good performance and a clean design.
The easiest place to start is to analyze what you’re working with. What are your business objects? What are your database tables? How do they relate to each other? For the first example, consider the following simple Person class that conforms to the typical JavaBeans
這個(gè)簡(jiǎn)短的教程將帶領(lǐng)你通過(guò)一個(gè)典型的SQL Map演練,教程中的每一個(gè)主題的細(xì)節(jié)部分您都可以在官方網(wǎng)站http://ibatis.apache.org中的SQL Map開(kāi)發(fā)者指南中找到。
準(zhǔn)備使用SQL Map
SQL Map 架構(gòu)能應(yīng)用于設(shè)計(jì)不好的數(shù)據(jù)庫(kù)模型甚至是設(shè)計(jì)不好的對(duì)象模型。盡管如此,您在設(shè)計(jì)數(shù)據(jù)庫(kù)模型和對(duì)象模型時(shí),還是應(yīng)該遵循最佳的設(shè)計(jì)原則。這樣,您會(huì)獲得更好的性能和更簡(jiǎn)潔清晰的設(shè)計(jì)方案。
設(shè)計(jì)最容易開(kāi)始的地方是分析應(yīng)用的業(yè)務(wù)邏輯。分析什么是應(yīng)用的業(yè)務(wù)對(duì)象,什么是數(shù)據(jù)模型以及兩者之間的關(guān)系。作為快速入門(mén)第一個(gè)例子,我們使用一個(gè)簡(jiǎn)單的 JavaBean Person 類(lèi)。
Introuction
This brief tutorial will take you through a walkthrough of a typical use of SQL Maps. The details of each of the topics below can be found in the SQL Maps developer guide available from http://ibatis.apache.org
Preparing to Use SQL Maps
The SQL Maps framework is very tolerant of bad database models and even bad object models. Despite this, it is recommended that you use best practices when designing your database (proper normalization) and your object model. By doing so, you will get good performance and a clean design.
The easiest place to start is to analyze what you’re working with. What are your business objects? What are your database tables? How do they relate to each other? For the first example, consider the following simple Person class that conforms to the typical JavaBeans