Generic Repository
Generic Repository (grepo) 是一个开源的Java 框架,用来通过统一的方法访问各种数据库系统。使用grepo,一般不再需要提供所有的样板代码是必要的,以访问(数据库)从Java库。你所要做的就是适当的数据库编写的代码(查询,过程,函数等),一个适当注解的Java接口,很少Spring配置。使用该框架具有以下优点:
- Improves development time because no implementations are required for data access objects (DAOs).
- Simplifies development and increases code quality - you won't hear your colleague say "Hey look, what I've found - I guess this is not the way we do this normally?!" anymore.
- Makes your data access layer consistent - similar/equal data access operations are "implemented" (and thus work) in the same way which in turn makes software more stable and in general better maintainable.
评论