`
ajf8
  • 浏览: 4763 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
文章分类
社区版块
存档分类
最新评论

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics