[导入]java快速开发平台ajf之ORM组件


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.blogjava.net/ajf/archive/2009/01/03/249618.html

 

 

 

 



小牛踏青 2009-01-21 16:07 发表评论

文章来源:http://www.blogjava.net/ajf/archive/2009/01/21/252233.html
posted @ 2009-01-24 17:00  xtjinwei  阅读(255)  评论(0编辑  收藏  举报