WIP json refactor - initial tidy

This commit is contained in:
Rob Bygrave committed 2014-11-05 23:15:09 +13:00
1 parent 0ceda6406e
commit b313809894
29 files changed
+1301 -1001

No files matched your search

@@ -4,8 +4,7 @@ import java.io.StringReader;
import java.util.List;
import java.util.Map;
import junit.framework.Assert;
import org.junit.Assert;
import org.junit.Test;
import com.avaje.ebean.BaseTestCase;
@@ -26,9 +25,12 @@ public class TestTextJsonBeanReadVisitor extends BaseTestCase {
ResetBasicData.reset();
List<Customer> list = Ebean.find(Customer.class).select("id, name, status, shippingAddress")
.fetch("billingAddress", "line1, city").fetch("billingAddress.country", "*")
.fetch("contacts", "firstName,email").order().desc("id").findList();
List<Customer> list = Ebean.find(Customer.class)
.select("id, name, status, shippingAddress")
.fetch("billingAddress", "line1, city")
.fetch("billingAddress.country", "*")
.fetch("contacts", "firstName,email")
.order().desc("id").findList();
JsonContext json = Ebean.createJsonContext();