Guice-persist是基于warp-persist的,它具有finder方法的概念。
http://code.google.com/p/google-guice/wiki/GuicePersist
是基于
http://code.google.com/p/warp-persist/
我可以看到在guice中有一个@Finder的注释,类似于warp-persist,但是没有文档。
发布于 2011-04-22 03:58:02
是的,您需要在创建JpaPersistModule时将finders添加到它:
Module persistModule = new JpaPersistModule(...)
.addFinder(SomeFinder.class)
.addFinder(OtherFinder.class);https://stackoverflow.com/questions/5748934
复制相似问题