Revision: 8105
Author: amitman...@google.com
Date: Wed May 12 04:54:10 2010
Log: The generated data was missing an Expense -> Report link. Fixed it. Updated the sample Json data.

Patch by: amitmanjhi
Review by: jgw (tbr)

Review at http://gwt-code-reviews.appspot.com/512801

http://code.google.com/p/google-web-toolkit/source/detail?r=8105

Modified:
 /branches/2.1/bikeshed/scripts/expensesJsonData.txt
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/server/DataGenerator.java

=======================================
--- /branches/2.1/bikeshed/scripts/expensesJsonData.txt Tue May 11 17:08:18 2010 +++ /branches/2.1/bikeshed/scripts/expensesJsonData.txt Wed May 12 04:54:10 2010
@@ -1,5273 +1,6706 @@
 {"CREATE": [
     {"EmployeeRecord": {
         "id": "1",
-        "department": "Marketing",
-        "userName": "jawesome",
-        "displayName": "John Awesome"
+        "department": "Engineering",
+        "userName": "iignoranomous",
+        "displayName": "Ingrid Ignoranomous"
     }},
     {"ReportRecord": {
         "id": "2",
-        "created": 1270158940643,
+        "created": 1270457783871,
         "reporterKey": 1,
-        "department": "Marketing",
-        "purpose": "Spending lots of money",
-        "notes": "High priority"
+        "department": "Engineering",
+        "purpose": "Team building diamond cutting offsite",
+        "notes": "Please bill to the Widgets project"
     }},
     {"ExpenseRecord": {
-        "amount": 27.51,
+        "amount": 108.57,
         "id": "3",
-        "category": "Local Transportation",
-        "created": 1267741470646,
-        "description": "Bus ticket"
+        "category": "Air Travel",
+        "created": 1272650531874,
+        "description": "Flight from ATL to SFO",
+        "reportId": 2
     }},
     {"ExpenseRecord": {
-        "amount": 224.5,
+        "amount": 214.99,
         "id": "4",
         "category": "Dining",
-        "created": 1268194980646,
-        "description": "Lunch"
+        "created": 1268025438874,
+        "description": "Breakfast",
+        "reportId": 2
     }},
     {"ExpenseRecord": {
-        "amount": 0.97,
+        "amount": 218.19,
         "id": "5",
         "category": "Local Transportation",
-        "created": 1271959835646,
-        "description": "Train fare"
+        "created": 1271760323874,
+        "description": "Taxi fare",
+        "reportId": 2
     }},
     {"ReportRecord": {
         "id": "6",
-        "created": 1270606338646,
+        "created": 1266376476874,
         "reporterKey": 1,
-        "department": "Marketing",
-        "purpose": "Visit to Istanbul",
-        "notes": "Need approval by Monday"
+        "department": "Engineering",
+        "purpose": "ISDN modem for telecommuting",
+        "notes": ""
     }},
     {"ExpenseRecord": {
-        "amount": 31.65,
+        "amount": 74.65,
         "id": "7",
-        "category": "Dining",
-        "created": 1267447426646,
-        "description": "Dinner"
+        "category": "Office Supplies",
+        "created": 1273398834874,
+        "description": "Paperclips",
+        "reportId": 6
     }},
     {"ExpenseRecord": {
-        "amount": 59.01,
+        "amount": 106.89,
         "id": "8",
         "category": "Local Transportation",
-        "created": 1272708151646,
-        "description": "Bus ticket"
+        "created": 1273057148874,
+        "description": "Bus ticket",
+        "reportId": 6
     }},
-    {"ReportRecord": {
+    {"ExpenseRecord": {
+        "amount": 207.62,
         "id": "9",
-        "created": 1273335119646,
-        "reporterKey": 1,
-        "department": "Marketing",
-        "purpose": "Spending lots of money",
-        "notes": ""
+        "category": "Air Travel",
+        "created": 1273405596874,
+        "description": "Flight from SFO to ATL",
+        "reportId": 6
     }},
     {"ExpenseRecord": {
-        "amount": 74.41,
+        "amount": 39.16,
         "id": "10",
         "category": "Lodging",
-        "created": 1267889638646,
-        "description": "Bed & Breakfast"
+        "created": 1266005294874,
+        "description": "Hotel",
+        "reportId": 6
     }},
-    {"ReportRecord": {
+    {"ExpenseRecord": {
+        "amount": 61.91,
         "id": "11",
-        "created": 1271034778646,
-        "reporterKey": 1,
-        "department": "Marketing",
-        "purpose": "Sushi offsite",
-        "notes": "Show me the money"
+        "category": "Dining",
+        "created": 1270242578874,
+        "description": "Lunch",
+        "reportId": 6
     }},
-    {"ExpenseRecord": {
-        "amount": 157.66,
+    {"ReportRecord": {
         "id": "12",
-        "category": "Lodging",
-        "created": 1270713890646,
-        "description": "Bed & Breakfast"
+        "created": 1267040869874,
+        "reporterKey": 1,
+        "department": "Engineering",
+        "purpose": "Spending lots of money",
+        "notes": "High priority"
     }},
     {"ExpenseRecord": {
-        "amount": 46.23,
+        "amount": 127.86,
         "id": "13",
-        "category": "Dining",
-        "created": 1268489021646,
-        "description": "Lunch"
+        "category": "Local Transportation",
+        "created": 1271694564874,
+        "description": "Taxi fare",
+        "reportId": 12
     }},
-    {"EmployeeRecord": {
+    {"ExpenseRecord": {
+        "amount": 9.83,
         "id": "14",
-        "department": "Marketing",
-        "userName": "ckrazy",
-        "displayName": "Catherine Krazy"
+        "category": "Air Travel",
+        "created": 1272145176874,
+        "description": "Flight from SFO to ATL",
+        "reportId": 12
     }},
-    {"ReportRecord": {
+    {"ExpenseRecord": {
+        "amount": 22.04,
         "id": "15",
-        "created": 1268381657646,
-        "reporterKey": 14,
-        "department": "Marketing",
-        "purpose": "Potato chip cooking offsite",
-        "notes": "High priority"
+        "category": "Dining",
+        "created": 1268462181874,
+        "description": "Lunch",
+        "reportId": 12
     }},
-    {"ExpenseRecord": {
-        "amount": 75.53,
+    {"ReportRecord": {
         "id": "16",
-        "category": "Dining",
-        "created": 1269916613646,
-        "description": "Lunch"
+        "created": 1269658372874,
+        "reporterKey": 1,
+        "department": "Engineering",
+        "purpose": "Money laundering",
+        "notes": "High priority"
     }},
     {"ExpenseRecord": {
-        "amount": 13.59,
+        "amount": 186.96,
         "id": "17",
-        "category": "Dining",
-        "created": 1270889381646,
-        "description": "Dinner"
+        "category": "Office Supplies",
+        "created": 1269457284874,
+        "description": "Stapler",
+        "reportId": 16
     }},
-    {"ExpenseRecord": {
-        "amount": 206.12,
+    {"ReportRecord": {
         "id": "18",
-        "category": "Local Transportation",
-        "created": 1267342622646,
-        "description": "Bus ticket"
+        "created": 1269542154874,
+        "reporterKey": 1,
+        "department": "Engineering",
+        "purpose": "Donut day",
+        "notes": "Need approval by Monday"
     }},
     {"ExpenseRecord": {
-        "amount": 29.54,
+        "amount": 122.11,
         "id": "19",
-        "category": "Dining",
-        "created": 1269566225646,
-        "description": "Lunch"
+        "category": "Office Supplies",
+        "created": 1269849719874,
+        "description": "Paperclips",
+        "reportId": 18
     }},
     {"ExpenseRecord": {
-        "amount": 14.44,
+        "amount": 62.23,
         "id": "20",
         "category": "Office Supplies",
-        "created": 1270216391646,
-        "description": "Scissors"
+        "created": 1267646266874,
+        "description": "Scissors",
+        "reportId": 18
     }},
-    {"ReportRecord": {
+    {"ExpenseRecord": {
+        "amount": 39.35,
         "id": "21",
-        "created": 1269050159646,
-        "reporterKey": 14,
-        "department": "Marketing",
-        "purpose": "Visit to Istanbul",
-        "notes": ""
+        "category": "Air Travel",
+        "created": 1269959670874,
+        "description": "Flight from SFO to ATL",
+        "reportId": 18
     }},
     {"ExpenseRecord": {
-        "amount": 192.13,
+        "amount": 12.3,
         "id": "22",
-        "category": "Dining",
-        "created": 1268631608646,
-        "description": "Dinner"
-    }},
-    {"ExpenseRecord": {
-        "amount": 101.53,
-        "id": "23",
-        "category": "Dining",
-        "created": 1269628915646,
-        "description": "Dinner"
+        "category": "Lodging",
+        "created": 1267478581874,
+        "description": "Bed & Breakfast",
+        "reportId": 18
     }},
     {"ReportRecord": {
-        "id": "24",
-        "created": 1268943791646,
-        "reporterKey": 14,
-        "department": "Marketing",
-        "purpose": "Potato chip cooking offsite",
+        "id": "23",
+        "created": 1272809068874,
+        "reporterKey": 1,
+        "department": "Engineering",
+        "purpose": "Baseball card research",
         "notes": "Review A.S.A.P."
     }},
     {"ExpenseRecord": {
-        "amount": 100.4,
+        "amount": 143.13,
+        "id": "24",
+        "category": "Dining",
+        "created": 1270837943874,
+        "description": "Lunch",
+        "reportId": 23
+    }},
+    {"ReportRecord": {
         "id": "25",
-        "category": "Office Supplies",
-        "created": 1271852212646,
-        "description": "Paste"
+        "created": 1266675399874,
+        "reporterKey": 1,
+        "department": "Engineering",
+        "purpose": "Sushi offsite",
+        "notes": "Please bill to the Widgets project"
     }},
     {"ExpenseRecord": {
-        "amount": 159.14,
+        "amount": 137.75,
         "id": "26",
-        "category": "Office Supplies",
-        "created": 1269683167646,
-        "description": "Scissors"
+        "category": "Local Transportation",
+        "created": 1271252010874,
+        "description": "Train fare",
+        "reportId": 25
     }},
     {"ExpenseRecord": {
-        "amount": 115.32,
+        "amount": 141.36,
         "id": "27",
         "category": "Local Transportation",
-        "created": 1272133370646,
-        "description": "Taxi fare"
+        "created": 1267640825874,
+        "description": "Taxi fare",
+        "reportId": 25
     }},
-    {"ReportRecord": {
+    {"ExpenseRecord": {
+        "amount": 11.62,
         "id": "28",
-        "created": 1267860081646,
-        "reporterKey": 14,
-        "department": "Marketing",
-        "purpose": "Visit to Istanbul",
-        "notes": "Need approval by Monday"
+        "category": "Local Transportation",
+        "created": 1272840577874,
+        "description": "Taxi fare",
+        "reportId": 25
     }},
     {"ExpenseRecord": {
-        "amount": 141.55,
+        "amount": 54.5,
         "id": "29",
-        "category": "Air Travel",
-        "created": 1265993796646,
-        "description": "Flight from SFO to ATL"
+        "category": "Office Supplies",
+        "created": 1267781176874,
+        "description": "Scissors",
+        "reportId": 25
     }},
     {"ExpenseRecord": {
-        "amount": 73.53,
+        "amount": 97.51,
         "id": "30",
-        "category": "Local Transportation",
-        "created": 1269192186646,
-        "description": "Train fare"
+        "category": "Dining",
+        "created": 1269765216874,
+        "description": "Breakfast",
+        "reportId": 25
     }},
-    {"ExpenseRecord": {
-        "amount": 125.65,
+    {"ReportRecord": {
         "id": "31",
-        "category": "Air Travel",
-        "created": 1272450812646,
-        "description": "Flight from SFO to ATL"
+        "created": 1267826869874,
+        "reporterKey": 1,
+        "department": "Engineering",
+        "purpose": "Sushi offsite",
+        "notes": "Review A.S.A.P."
     }},
     {"ExpenseRecord": {
-        "amount": 145.65,
+        "amount": 92.43,
         "id": "32",
-        "category": "Air Travel",
-        "created": 1271526656646,
-        "description": "Flight from ATL to SFO"
+        "category": "Dining",
+        "created": 1269643746874,
+        "description": "Dinner",
+        "reportId": 31
     }},
-    {"ReportRecord": {
+    {"ExpenseRecord": {
+        "amount": 92.72,
         "id": "33",
-        "created": 1273118505646,
-        "reporterKey": 14,
-        "department": "Marketing",
-        "purpose": "Donut day",
-        "notes": "Need approval by Monday"
+        "category": "Local Transportation",
+        "created": 1271894364874,
+        "description": "Bus ticket",
+        "reportId": 31
     }},
     {"ExpenseRecord": {
-        "amount": 156.04,
+        "amount": 232.91,
         "id": "34",
-        "category": "Office Supplies",
-        "created": 1271046410646,
-        "description": "Paste"
+        "category": "Air Travel",
+        "created": 1270926459874,
+        "description": "Flight from SFO to ATL",
+        "reportId": 31
     }},
-    {"ExpenseRecord": {
-        "amount": 69.15,
+    {"ReportRecord": {
         "id": "35",
-        "category": "Air Travel",
-        "created": 1269588752646,
-        "description": "Flight from ATL to SFO"
+        "created": 1268193735874,
+        "reporterKey": 1,
+        "department": "Engineering",
+        "purpose": "Money laundering",
+        "notes": "Need approval by Monday"
     }},
     {"ExpenseRecord": {
-        "amount": 73.6,
+        "amount": 243.7,
         "id": "36",
-        "category": "Office Supplies",
-        "created": 1267480472646,
-        "description": "Paperclips"
+        "category": "Dining",
+        "created": 1272868944874,
+        "description": "Dinner",
+        "reportId": 35
     }},
-    {"ReportRecord": {
+    {"ExpenseRecord": {
+        "amount": 96.25,
         "id": "37",
-        "created": 1269268619646,
-        "reporterKey": 14,
-        "department": "Marketing",
-        "purpose": "ISDN modem for telecommuting",
-        "notes": "Please bill to the Widgets project"
+        "category": "Lodging",
+        "created": 1270666462874,
+        "description": "Bed & Breakfast",
+        "reportId": 35
     }},
     {"ExpenseRecord": {
-        "amount": 117.9,
+        "amount": 25.04,
         "id": "38",
-        "category": "Lodging",
-        "created": 1270500917646,
-        "description": "Hotel"
+        "category": "Dining",
+        "created": 1267542829874,
+        "description": "Breakfast",
+        "reportId": 35
     }},
-    {"ExpenseRecord": {
-        "amount": 171.56,
+    {"ReportRecord": {
         "id": "39",
-        "category": "Dining",
-        "created": 1267230516646,
-        "description": "Lunch"
+        "created": 1266992134874,
+        "reporterKey": 1,
+        "department": "Engineering",
+        "purpose": "ISDN modem for telecommuting",
+        "notes": "Show me the money"
     }},
     {"ExpenseRecord": {
-        "amount": 188.98,
+        "amount": 200.05,
         "id": "40",
-        "category": "Air Travel",
-        "created": 1272020184646,
-        "description": "Flight from ATL to SFO"
-    }},
-    {"ExpenseRecord": {
-        "amount": 161.14,
-        "id": "41",
-        "category": "Dining",
-        "created": 1270208291646,
-        "description": "Breakfast"
+        "category": "Office Supplies",
+        "created": 1271788120874,
+        "description": "Paperclips",
+        "reportId": 39
     }},
     {"ReportRecord": {
-        "id": "42",
-        "created": 1271374106646,
-        "reporterKey": 14,
-        "department": "Marketing",
-        "purpose": "ISDN modem for telecommuting",
+        "id": "41",
+        "created": 1269757599874,
+        "reporterKey": 1,
+        "department": "Engineering",
+        "purpose": "Sushi offsite",
         "notes": "Need approval by Monday"
     }},
     {"ExpenseRecord": {
-        "amount": 92.76,
+        "amount": 29.38,
+        "id": "42",
+        "category": "Air Travel",
+        "created": 1267727300874,
+        "description": "Flight from SFO to ATL",
+        "reportId": 41
+    }},
+    {"ReportRecord": {
         "id": "43",
-        "category": "Local Transportation",
-        "created": 1269527159646,
-        "description": "Taxi fare"
+        "created": 1271895908874,
+        "reporterKey": 1,
+        "department": "Engineering",
+        "purpose": "ISDN modem for telecommuting",
+        "notes": "Review A.S.A.P."
     }},
     {"ExpenseRecord": {
-        "amount": 30.61,
+        "amount": 81.09,
         "id": "44",
-        "category": "Office Supplies",
-        "created": 1268841071646,
-        "description": "Scissors"
+        "category": "Air Travel",
+        "created": 1267559487874,
+        "description": "Flight from SFO to ATL",
+        "reportId": 43
     }},
-    {"ExpenseRecord": {
-        "amount": 69.63,
+    {"ReportRecord": {
         "id": "45",
-        "category": "Local Transportation",
-        "created": 1269731477646,
-        "description": "Bus ticket"
+        "created": 1272653744874,
+        "reporterKey": 1,
+        "department": "Engineering",
+        "purpose": "Money laundering",
+        "notes": ""
     }},
     {"ExpenseRecord": {
-        "amount": 99.6,
+        "amount": 107.65,
         "id": "46",
-        "category": "Office Supplies",
-        "created": 1265974764646,
-        "description": "Stapler"
+        "category": "Dining",
+        "created": 1270424886874,
+        "description": "Dinner",
+        "reportId": 45
     }},
-    {"ExpenseRecord": {
-        "amount": 75.47,
+    {"ReportRecord": {
         "id": "47",
-        "category": "Lodging",
-        "created": 1266066983646,
-        "description": "Hotel"
+        "created": 1269267882874,
+        "reporterKey": 1,
+        "department": "Engineering",
+        "purpose": "Spending lots of money",
+        "notes": ""
     }},
-    {"EmployeeRecord": {
+    {"ExpenseRecord": {
+        "amount": 148.87,
         "id": "48",
-        "department": "Marketing",
-        "userName": "dradical",
-        "displayName": "Dave Radical"
+        "category": "Office Supplies",
+        "created": 1266657252874,
+        "description": "Paperclips",
+        "reportId": 47
     }},
-    {"ReportRecord": {
+    {"ExpenseRecord": {
+        "amount": 7.25,
         "id": "49",
-        "created": 1271084453646,
-        "reporterKey": 48,
-        "department": "Marketing",
-        "purpose": "Visit to Istanbul",
-        "notes": "Please bill to the Widgets project"
+        "category": "Dining",
+        "created": 1269455627874,
+        "description": "Breakfast",
+        "reportId": 47
     }},
-    {"ExpenseRecord": {
-        "amount": 157.45,
+    {"EmployeeRecord": {
         "id": "50",
-        "category": "Dining",
-        "created": 1269050872646,
-        "description": "Breakfast"
-    }},
-    {"ExpenseRecord": {
-        "amount": 92.08,
-        "id": "51",
-        "category": "Local Transportation",
-        "created": 1266235016646,
-        "description": "Taxi fare"
+        "department": "Sales",
+        "userName": "hmagnanimous",
+        "displayName": "Harriot Magnanimous"
     }},
     {"ReportRecord": {
-        "id": "52",
-        "created": 1269701271646,
-        "reporterKey": 48,
-        "department": "Marketing",
-        "purpose": "ISDN modem for telecommuting",
+        "id": "51",
+        "created": 1268805010874,
+        "reporterKey": 50,
+        "department": "Sales",
+        "purpose": "Sushi offsite",
         "notes": ""
     }},
     {"ExpenseRecord": {
-        "amount": 29.44,
+        "amount": 123.45,
+        "id": "52",
+        "category": "Office Supplies",
+        "created": 1267498011874,
+        "description": "Paste",
+        "reportId": 51
+    }},
+    {"ReportRecord": {
         "id": "53",
-        "category": "Dining",
-        "created": 1272597192646,
-        "description": "Breakfast"
+        "created": 1273391270874,
+        "reporterKey": 50,
+        "department": "Sales",
+        "purpose": "ISDN modem for telecommuting",
+        "notes": "Review A.S.A.P."
     }},
     {"ExpenseRecord": {
-        "amount": 197.27,
+        "amount": 155.78,
         "id": "54",
-        "category": "Office Supplies",
-        "created": 1266080226646,
-        "description": "Stapler"
+        "category": "Dining",
+        "created": 1268685212874,
+        "description": "Breakfast",
+        "reportId": 53
     }},
-    {"ExpenseRecord": {
-        "amount": 62.24,
+    {"ReportRecord": {
         "id": "55",
-        "category": "Air Travel",
-        "created": 1272333829646,
-        "description": "Flight from SFO to ATL"
+        "created": 1268927872874,
+        "reporterKey": 50,
+        "department": "Sales",
+        "purpose": "Money laundering",
+        "notes": "Need approval by Monday"
     }},
     {"ExpenseRecord": {
-        "amount": 212.4,
+        "amount": 60.71,
         "id": "56",
         "category": "Dining",
-        "created": 1267259989646,
-        "description": "Dinner"
+        "created": 1273585146874,
+        "description": "Dinner",
+        "reportId": 55
     }},
     {"ReportRecord": {
         "id": "57",
-        "created": 1267663448646,
-        "reporterKey": 48,
-        "department": "Marketing",
-        "purpose": "Potato chip cooking offsite",
+        "created": 1268584072874,
+        "reporterKey": 50,
+        "department": "Sales",
+        "purpose": "Spending lots of money",
         "notes": "Show me the money"
     }},
     {"ExpenseRecord": {
-        "amount": 183.17,
+        "amount": 68.5,
         "id": "58",
-        "category": "Local Transportation",
-        "created": 1267862167646,
-        "description": "Bus ticket"
+        "category": "Air Travel",
+        "created": 1271931368874,
+        "description": "Flight from ATL to SFO",
+        "reportId": 57
     }},
-    {"ExpenseRecord": {
-        "amount": 187.14,
+    {"ReportRecord": {
         "id": "59",
-        "category": "Office Supplies",
-        "created": 1269576565646,
-        "description": "Scissors"
+        "created": 1266848867874,
+        "reporterKey": 50,
+        "department": "Sales",
+        "purpose": "Baseball card research",
+        "notes": "Review A.S.A.P."
     }},
     {"ExpenseRecord": {
-        "amount": 45.28,
+        "amount": 204.41,
         "id": "60",
-        "category": "Local Transportation",
-        "created": 1269662483646,
-        "description": "Train fare"
+        "category": "Dining",
+        "created": 1271586404874,
+        "description": "Breakfast",
+        "reportId": 59
     }},
-    {"ReportRecord": {
+    {"ExpenseRecord": {
+        "amount": 48.59,
         "id": "61",
-        "created": 1271666169646,
-        "reporterKey": 48,
-        "department": "Marketing",
-        "purpose": "Sushi offsite",
-        "notes": "Show me the money"
+        "category": "Dining",
+        "created": 1273100865874,
+        "description": "Lunch",
+        "reportId": 59
     }},
     {"ExpenseRecord": {
-        "amount": 244.71,
+        "amount": 114.06,
         "id": "62",
-        "category": "Lodging",
-        "created": 1266309376646,
-        "description": "Hotel"
+        "category": "Dining",
+        "created": 1269528068874,
+        "description": "Lunch",
+        "reportId": 59
     }},
     {"ReportRecord": {
         "id": "63",
-        "created": 1271110292646,
-        "reporterKey": 48,
-        "department": "Marketing",
-        "purpose": "Baseball card research",
-        "notes": "Need approval by Monday"
+        "created": 1266639627874,
+        "reporterKey": 50,
+        "department": "Sales",
+        "purpose": "Money laundering",
+        "notes": "Please bill to the Widgets project"
     }},
     {"ExpenseRecord": {
-        "amount": 173.12,
+        "amount": 201.56,
         "id": "64",
-        "category": "Dining",
-        "created": 1266401680646,
-        "description": "Dinner"
+        "category": "Office Supplies",
+        "created": 1272403555874,
+        "description": "Paperclips",
+        "reportId": 63
     }},
     {"ExpenseRecord": {
-        "amount": 6.83,
+        "amount": 153.54,
         "id": "65",
-        "category": "Office Supplies",
-        "created": 1269523103646,
-        "description": "Scissors"
+        "category": "Local Transportation",
+        "created": 1269683902874,
+        "description": "Bus ticket",
+        "reportId": 63
     }},
     {"ExpenseRecord": {
-        "amount": 84.43,
+        "amount": 174.19,
         "id": "66",
-        "category": "Local Transportation",
-        "created": 1270503090646,
-        "description": "Bus ticket"
+        "category": "Air Travel",
+        "created": 1270664768874,
+        "description": "Flight from ATL to SFO",
+        "reportId": 63
     }},
     {"ExpenseRecord": {
-        "amount": 21.75,
+        "amount": 137.89,
         "id": "67",
-        "category": "Lodging",
-        "created": 1268622238646,
-        "description": "Hotel"
+        "category": "Local Transportation",
+        "created": 1267752448874,
+        "description": "Bus ticket",
+        "reportId": 63
     }},
     {"ReportRecord": {
         "id": "68",
-        "created": 1270154197646,
-        "reporterKey": 48,
-        "department": "Marketing",
-        "purpose": "Donut day",
-        "notes": "Show me the money"
+        "created": 1268584646874,
+        "reporterKey": 50,
+        "department": "Sales",
+        "purpose": "Visit to Istanbul",
+        "notes": "Please bill to the Widgets project"
     }},
     {"ExpenseRecord": {
-        "amount": 168.18,
+        "amount": 130.31,
         "id": "69",
         "category": "Local Transportation",
-        "created": 1270243978646,
-        "description": "Taxi fare"
+        "created": 1269326378874,
+        "description": "Bus ticket",
+        "reportId": 68
     }},
     {"ReportRecord": {
         "id": "70",
-        "created": 1268103072646,
-        "reporterKey": 48,
-        "department": "Marketing",
-        "purpose": "ISDN modem for telecommuting",
+        "created": 1272079672874,
+        "reporterKey": 50,
+        "department": "Sales",
+        "purpose": "Potato chip cooking offsite",
         "notes": "High priority"
     }},
     {"ExpenseRecord": {
-        "amount": 243.8,
+        "amount": 18.65,
         "id": "71",
         "category": "Dining",
-        "created": 1270492849646,
-        "description": "Dinner"
+        "created": 1272999804874,
+        "description": "Dinner",
+        "reportId": 70
     }},
     {"ExpenseRecord": {
-        "amount": 38.47,
+        "amount": 243.13,
         "id": "72",
-        "category": "Dining",
-        "created": 1269769936646,
-        "description": "Dinner"
+        "category": "Local Transportation",
+        "created": 1269568047874,
+        "description": "Train fare",
+        "reportId": 70
     }},
-    {"ExpenseRecord": {
-        "amount": 200.33,
+    {"ReportRecord": {
         "id": "73",
-        "category": "Dining",
-        "created": 1268868296646,
-        "description": "Dinner"
+        "created": 1272456916874,
+        "reporterKey": 50,
+        "department": "Sales",
+        "purpose": "Team building diamond cutting offsite",
+        "notes": "Please bill to the Widgets project"
     }},
     {"ExpenseRecord": {
-        "amount": 210.47,
+        "amount": 161.37,
         "id": "74",
         "category": "Air Travel",
-        "created": 1268400135646,
-        "description": "Flight from SFO to ATL"
+        "created": 1267794494874,
+        "description": "Flight from SFO to ATL",
+        "reportId": 73
     }},
     {"ExpenseRecord": {
-        "amount": 157.73,
+        "amount": 208.54,
         "id": "75",
-        "category": "Dining",
-        "created": 1267508158646,
-        "description": "Lunch"
+        "category": "Office Supplies",
+        "created": 1266141223874,
+        "description": "Stapler",
+        "reportId": 73
     }},
-    {"ReportRecord": {
+    {"ExpenseRecord": {
+        "amount": 145.4,
         "id": "76",
-        "created": 1268712948646,
-        "reporterKey": 48,
-        "department": "Marketing",
-        "purpose": "Money laundering",
-        "notes": "Please bill to the Widgets project"
+        "category": "Dining",
+        "created": 1270601629874,
+        "description": "Breakfast",
+        "reportId": 73
     }},
-    {"ExpenseRecord": {
-        "amount": 76.87,
+    {"ReportRecord": {
         "id": "77",
-        "category": "Office Supplies",
-        "created": 1266032334646,
-        "description": "Scissors"
+        "created": 1266555663874,
+        "reporterKey": 50,
+        "department": "Sales",
+        "purpose": "Spending lots of money",
+        "notes": "High priority"
     }},
     {"ExpenseRecord": {
-        "amount": 94.51,
+        "amount": 184.25,
         "id": "78",
         "category": "Office Supplies",
-        "created": 1268128030646,
-        "description": "Paperclips"
+        "created": 1271279879874,
+        "description": "Paste",
+        "reportId": 77
     }},
     {"ExpenseRecord": {
-        "amount": 19.5,
+        "amount": 125.56,
         "id": "79",
-        "category": "Office Supplies",
-        "created": 1270820735646,
-        "description": "Scissors"
+        "category": "Lodging",
+        "created": 1266374748874,
+        "description": "Bed & Breakfast",
+        "reportId": 77
     }},
-    {"ExpenseRecord": {
-        "amount": 161.98,
+    {"ReportRecord": {
         "id": "80",
-        "category": "Dining",
-        "created": 1266725490646,
-        "description": "Lunch"
+        "created": 1268217557874,
+        "reporterKey": 50,
+        "department": "Sales",
+        "purpose": "Sushi offsite",
+        "notes": "High priority"
     }},
-    {"ReportRecord": {
+    {"ExpenseRecord": {
+        "amount": 193.35,
         "id": "81",
-        "created": 1272376326646,
***The diff for this file has been truncated for email.***
=======================================
--- /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/server/DataGenerator.java Tue May 11 17:08:18 2010 +++ /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/server/DataGenerator.java Wed May 12 04:54:10 2010
@@ -179,6 +179,7 @@
private JSONObject getExpenseAsJson(Expense expense) throws JSONException {
     JSONObject jsonObject = new JSONObject();
     jsonObject.put("id", "" + expense.getId());
+    jsonObject.put("reportId", expense.getReportId());
     jsonObject.put("description", expense.getDescription());
     jsonObject.put("created", expense.getCreated().getTime());
     jsonObject.put("amount", expense.getAmount());

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to