我在數據庫中有預定義的表格,我必須開發一個web應用程序。我應該根據數據庫中的數據結構創建模型類嗎?
我是否應該將模型類基於表中的數據結構。
但問題是這些表格的定義非常差,並且其中有很多冗餘數據(我無法更改!)。
例如,在兩張表中三列是相同的。
Table: Student_details
Student_id , Name, AGe, Class ,School
Table :Student_address
Student_id,Name,Age, Street1,Street2,City
所以根據你的方法我應該使用什麼上述場景?我應該在哪裏將我的數據處理邏輯放在struts應用程序中? – 2011-03-02 04:42:54
我使用業務邏輯 - 數據訪問對象 – 2011-03-02 04:43:21