Generic Repository
Generic Repository (grepo) 是一個開源的Java 框架,用來通過統一的方法訪問各種數據庫系統。使用grepo,一般不再需要提供所有的樣板代碼是必要的,以訪問(數據庫)從Java庫。你所要做的就是適當的數據庫編寫的代碼(查詢,過程,函數等),一個適當注解的Java接口,很少Spring配置。使用該框架具有以下優(yōu)點:
- 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.
評論
圖片
表情
