Merge pull request #220 from mzry1992/refactor-db-layer

Fix SessionFactory bean type error
Config protocol buffer
Merge pull request #221 from mzry1992/refactor-db-layer

Config protocol buffer
Auto generate DAOs by entitys
Merge pull request #222 from mzry1992/refactor-db-layer

Auto generate DAOs by entitys
Add criteria tools
Merge pull request #223 from mzry1992/refactor-db-layer

Add criteria tools
Use PageInfo to setup result limit
Add DTO Fields specify enumerate type class
Remove protocol buffer and add Dto tools
Use new API in ArticleService
Use new API in CodeService