c.add(Calendar.DAY_OF_MONTH, -1);
Artist a3 = context.newObject(Artist.class);
a3.setArtistName("3");
a3.setDateOfBirth(c.getTime());
Painting p1 = context.newObject(Painting.class);
p1.setEstimatedPrice(new BigDecimal(1));
p1.setPaintingTitle("Y");
a1.addToPaintingArray(p1);
Painting p2 = context.newObject(Painting.class);
p2.setEstimatedPrice(new BigDecimal(2));
p2.setPaintingTitle("X");
a2.addToPaintingArray(p2);
context.commitChanges();
SelectQuery query1 = new SelectQuery(Artist.class);