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.
Generic Repository 官网
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。