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直接操作
posted on 2009-01-21 16:07 小牛踏青 阅读(1875) 评论(3) 编辑 收藏