Annotation的一个很好的用处

加入另外一个项目获得的最大的好处就是这个了,他们定义了一些Annotation,然后定义一些Finder接口,接口里面只定义方法,但是不用实现,使用Dynamic Proxy实现接口实现方法参数和Query中的参数自动绑定,赞一个。这样写Hibernate的Query就很简单了,只需要定义基本的东西就行了。


作者: Cherami
原载: Annotation的一个很好的用处
版权所有。转载时必须以链接形式注明作者和原始出处及本声明。

日志评价

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (暂无评价) --点击星星直接投票
Loading ... Loading ...


相关日志



随机日志



添加到网摘

[del.icio.us]  [新浪 VIVI]  [365key]  [YouNote]  [博采中心]  [Poco]  [SOHU狐摘]  [天极网摘]  [和讯网摘]
喜欢这个插件?

当前日志信息