Created
June 19, 2014 04:31
-
-
Save thrakt/d9f0916fc68b31d3aaad to your computer and use it in GitHub Desktop.
POJOの初期化で楽したい ref: http://qiita.com/thrakt/items/4286dcfec43352a6586e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OreoreData oreoreData = new OreoreData(); | |
oreoreData.setOreoreDataId(oreoreDataId); | |
return oreoreDataService.find(oreoreData); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return oreoreDataService.find(new OreoreData(){{setOreoreDataId(oreoreDataId);}}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static my.PojoUtils.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return oreoreDataService.find(instance(OreoreData.class, pair("oreoreDataId",oreoreDataId))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment