ajf agile java framework
ajf是自主研發類似ROR的新一代java快速開發平臺
借鑒了struts webwork spring hibernate ibatis等開源組件優點
實現了mvc,orm,sqlmap,cache,pool,jdbcutil,commutil等組件
這里簡單介紹下ajf 的 ORM組件
配置文件 ajf_orm.config
#參與隱射的字段,逗號分隔,主鍵字段排在最前
t_ajf_test_user.cols=id,name,mail,qq,hh,ww,birth_day
#主鍵個數
t_ajf_test_user.pk=1
#主鍵是否自動增長 1 代表自動增長
t_ajf_test_user.pk.auto=1
#字段類型 string,int,double,long,time 默認為string
t_ajf_test_user.id.type=int
t_ajf_test_user.hh.type=double
t_ajf_test_user.ww.type=double
t_ajf_test_user.birth_day.type=time
改天弄成xml的配置格式
經過多種數據庫測試,access也支持
至于一些特殊類型 CLOB,BLOB還是建議用jdbc直接操作
具體內容可訪問本人主頁 http://hi.baidu.com/ajf8
demo下載 http://hi.baidu.com/ajf8/blog/item/d8861435117ff23d5ab5f5fc.html
也可以看這里的另一個帖子
http://www.tkk7.com/ajf/archive/2009/01/03/249618.html