浏览 10069 次
锁定老帖子 主题:bba96 发布2.0 rc1
精华帖 (0) :: 良好帖 (0) :: 灌水帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2005-09-27
源码下载(包含一个快速开发的例子。) https://bba96.dev.java.net/servlets/ProjectDocumentList?folderID=4149&expandFolder=4149&folderID=0 1. 核心持久层部分基于spring/hibernate,实现强大灵活的动态query功能,可独立使用。 2. 权限部分,基于RBAC,支持数据权限,依赖1部分的接口。 3. Action层,基于1以及webwork,良好架构,减少大量代码,支持view灵活进行query且有参数教验支持保证安全性。 简单说bba96就是基于hibernate/spring的快速开发框架,其中包含了对Hibernate Critiera,Projection的封装,通过一个强大而灵活的QueryObject对象,方便动态添加与删除条件。 通过统一的query与数据库交互,方便AOP,其中的RBAC权限模块(支持数据权限)即是通过AOP操作QueryObject对象来实现的。bba96核心可以跟流行的view整合,目前只有webwork整合的版本。 bba96 不再需要自己写DAO/SERVICE,借助简单的spring ioc即可配置使用缺省DAO/SERVICE,而且通过灵活方便,易扩展的后台持久层与webwork的整合,完全实现了快速开发的目的。 Bba96 include a flexible and convenient query object by encapsulating the hibernate Criteria and Projections, that make it easy to persist and query data. Bba96's query object can construct a dynamic query parameter easily without any hql or sql, and meet database's 95% access requirement, so it is not necessary to write your DAO/SERVICE, the default DAO/SERVICE is enough in most cases. You can also write your DAO/SERVICE easily by extending default DAO/SERVICE. Bba96 current version integrated with webwork 2.x, that is a rapid and efficient web develope framework, only several lines code in a webwork action can implement a persistent object's CRUD operation(with dynamic parameter query). Bba96 plan to integrate with other mvc framework in future Get Up And Running Quick Example: (1) enter the example/simple or emample/book folder. NOTE:all following operation is under the folder you entered (2) copy your JDBC driver (default mysql) to the lib directory -- webapps\ROOT\WEB-INF\lib (3) edit hibernate.properties for database info (default mysql) -- src\main\java\hibernate.properties (4) run "ant" (5) create database via the sql script generated at database\schema-export.sql (6) edit applicationContext.xml for database info (default mysql) -- webapps\ROOT\WEB-INF\applicationContext.xml (line 5 - 21) (7) start server and see this example bba96 CHANGELOG ========================== http://bba96.dev.java.net Changes in version 2.0 alpha3 (2006.4.3) *fix action query parameters bug -- [XXX:...] *fix distinct bug (discard Criteria.DISTINCT_ROOT_ENTITY) *some minor improvement Changes in version 2.0 alpha2.2 (2006.3.16) *update webwork's jar for fixing example bug in weblogic *remove all contentType setting in example Changes in version 2.0 alpha2.1 (2006.3.8) *fix example bug *update readme.txt Changes in version 2.0 alpha1 (2006.3.7) *webwork 2.2 support *hibernate 3.x support, then support native sql *fix some bug *add aop security module *add action query parameters validation *enhance action query parameters management *support more logic in action query *support multi orderby property Changes in version 1.0 (2005.09.23) *release first 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
发表时间:2005-09-27
好东东,强烈支持ing
|
|
返回顶楼 | |
发表时间:2005-11-07
今天已从java enterprise 孵化器中毕业,正式加入java enterprise 项目
https://java-enterprise.dev.java.net/ 特性之一,其中包含了对Hibernate Critiera,Projection的封装,方便动态添加与删除条件 |
|
返回顶楼 | |
发表时间:2005-11-18
更新至 1.0 RC1
https://bba96.dev.java.net/servlets/ProjectDocumentList?folderID=4149&expandFolder=4149&folderID=0 修正一处batchRemove的bug, 将action的与持久化相关的方法,以及getResults方法保护起来 添加了一个Book example. 包括简单用户管理,书籍的查询与租借。 |
|
返回顶楼 | |
发表时间:2005-11-19
增加在线演示
http://book.bba96.com/ |
|
返回顶楼 | |
发表时间:2006-01-13
比如hibernate参考文档中的例子,怎么能在这个框架中实现:
createCriteria(Cat.class) .add( Restrictions.like("name", "F%") .createCriteria("kittens") .add( Restrictions.like("name", "F%") .list(); |
|
返回顶楼 | |
发表时间:2006-01-14
find(Cat.class, new String[]{"name", "kittens:kitten.name"}, new String[]{"like", "like"}, new Object[]{"F%", "F%"})
这是action/service的写法,若你用webwork,框架中支持直接从jsp解析参数,就比较方便了。 冒号后表示别名,还可以继续进行关联查询如 kittens:kitten.propeties:property.name,没有层次的限制。 |
|
返回顶楼 | |
发表时间:2006-03-08
bba96 发布2.0 rc1
bba96 CHANGELOG ========================== http://bba96.dev.java.net Changes in version 2.0 alpha3 (2006.4.3) *fix action query parameters bug -- [XXX:...] *fix distinct bug (discard Criteria.DISTINCT_ROOT_ENTITY) *some minor improvement Changes in version 2.0 alpha2.2 (2006.3.16) *update webwork's jar for fixing example bug in weblogic *remove all contentType setting in example Changes in version 2.0 alpha2.1 (2006.3.8 ) *fix example bug *update readme.txt Changes in version 2.0 alpha1 (2006.3.7) *webwork 2.2 support *hibernate 3.x support, then support native sql *fix some bug *add aop security module *add action query parameters validation *enhance action query parameters management *support more logic in action query *support multi orderby property Changes in version 1.0 (2005.09.23) *release first |
|
返回顶楼 | |