论坛首页 Java企业应用论坛

java快速开发平台ajf之ORM组件

浏览 2125 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2009-01-21  

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
javaeye帖子 http://www.iteye.com/topic/257804

论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics