Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

December 10 2009

codefail

Flexible Pattern to create an Object in the U.S.A...

// Create a new Object and set it's currency
if((currency = currencies.get("EUR")) == null) {               
currency = new Currency("Euro", "EUR", 1);
currency.persist();
}