}
public void testUpdateEmbeddedProperties() throws Exception {
createTestData("testUpdate");
SelectQuery query = new SelectQuery(EmbedEntity1.class);
query.addOrdering(EmbedEntity1.NAME_PROPERTY, SortOrder.ASCENDING);
ObjectContext context = createDataContext();
List results = context.performQuery(query);
EmbedEntity1 o1 = (EmbedEntity1) results.get(0);
Embeddable1 e11 = o1.getEmbedded1();
e11.setEmbedded10("x1");
assertEquals(PersistenceState.MODIFIED, o1.getPersistenceState());
context.commitChanges();
SelectQuery query1 = new SelectQuery(EmbedEntity1.class);
query1.setFetchingDataRows(true);
DataRow row = (DataRow) Cayenne.objectForQuery(context, query1);
assertNotNull(row);
assertEquals("x1", row.get("EMBEDDED10"));
}