JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Software Design  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 CRUDs 簡化
jackysee





發文: 36
積分: 0
於 2005-01-04 02:18 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
最近老闆想將一些Table Maintenance的正常 CRUD 的操作設計成更自動,更Generic。我們現在是打從 jsp->controller->use case-->ejb,dao逐個去寫,沒有一個generic component去做CRUDs。

想問一下其實CRUDs的generalization應該如何實作呢?要留意些什麼?有沒有參考的Framework?


reply to postreply to post
EVA Zone http://evazone.seezone.net
Section 9 http://section9.seezone.net
Jacky's BLOG http://jacky.seezone.net
作者 Re:CRUDs 簡化 [Re:jackysee]
koji

秒速5センチメートル

站長

發文: 8415
積分: 19
於 2005-01-05 12:34 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
就是dao,vo的寫法嗎?
如果是一些簡單的做法
可以看看現在有的一些範例nhttps://appfuse.dev.java.net/
http://hibernate.org/159.html adminapp
不知道你要問的是不是這種東西^^"

koji


reply to postreply to post
JCConf Taiwan 2015 開始售票了!!
Facebook上的TWJUG社團,歡迎加入
作者 Re:CRUDs 簡化 [Re:jackysee]
next





發文: 29
積分: 0
於 2005-08-25 22:10 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
不妨參考

Hibernate Quickly - Manning

Chapter 7 - Organizing with Spring and data access objects


reply to postreply to post
作者 Re:CRUDs 簡化 [Re:next]
jimmy14

Give me J-Power !



發文: 787
積分: 3
於 2005-08-25 23:05 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
How about AppGen ?
引用它 Readme 裡的一段話
"Hopefully this tool will remove the pain of writing
simple CRUD code and let you concentrate on developing
your business logic and fancy UIs!"


reply to postreply to post
作者 Re:CRUDs 簡化 [Re:jimmy14]
jimmy14

Give me J-Power !



發文: 787
積分: 3
於 2005-08-25 23:22 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
再推兩個:
iBATIS: http://ibatis.apache.org/index.html
SQL2JAVA: http://sql2java.sourceforge.net/index.html

有人能推薦可搭配 IDE 的 tool 嗎 ?


reply to postreply to post
作者 Re:CRUDs 簡化 [Re:jackysee]
DigitLiao





發文: 155
積分: 0
於 2005-08-26 08:55 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
試試trails

http://today.java.net/pub/a/today/2005/06/23/trails.html


reply to postreply to post
作者 Re:CRUDs 簡化 [Re:jimmy14]
Fenris





發文: 68
積分: 4
於 2005-08-26 16:11 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
jimmy14 wrote:
iBATIS: http://ibatis.apache.org/index.html


其實 iBATIS 還是要自己去寫 CRUD 的 statement
沒辦法做到完全自動化
不過對於定的不太好的 table schema 或 sql 喜歡寫好幾頁 A4 的人倒是蠻好用的


reply to postreply to post
玩人生online,選賺錢職業,進朋友公會,打家庭副本,衝公司聲望,解客戶任務,買把妹座騎,點戀愛天賦,修虎爛技能,集3C套裝
作者 Re:CRUDs 簡化 [Re:jackysee]
inchlin





發文: 2
積分: 0
於 2005-10-01 22:43 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
可以試著以table為基礎做一個元件出來
此元件只要給他三組參數
1.table name
2.sql operation(insert,update,delete)
3.vo
如果要弄複雜一點可以再加上4
4.where conditon
大部分簡單的情況都可以解決
在java和donet我都實做過類似的framework
只是hibernate,ojb這類東西出來以後就不想再維護了

ps.複雜的邏輯還是得慢慢由service,business object,dao慢慢寫下去


reply to postreply to post
» JWorld@TW »  Software Design

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8