2011-04-21 115 views
2

Guice-persist是基於具有finder方法概念的warp-persist。Guice-persist是否支持@Finder註釋

http://code.google.com/p/google-guice/wiki/GuicePersist

基於

http://code.google.com/p/warp-persist/

我可以看到,有在@Finder註釋吉斯 - 堅持類似於經持續,但沒有文件。

+0

我對吉斯論壇類似的問題... http://groups.google.com/group/谷歌-吉斯/ browse_thread /線程/ 416c37c337ef0a04/e920ef54b3a1b502?LNK = GST&q =取景#e920ef54b3a1b502 – benstpierre 2011-04-21 19:50:52

回答

2

是的,你需要的發現者添加到JpaPersistModule當你創建:

Module persistModule = new JpaPersistModule(...) 
    .addFinder(SomeFinder.class) 
    .addFinder(OtherFinder.class);