public void testPrefetchQuote() throws Exception {
// work with tables QuoteAdress and Quote_Person.
// In this table parameter quoteSqlIdentifiers = true.
QuoteAdress quoteAdress = (QuoteAdress) context.newObject("QuoteAdress");
quoteAdress.setCity("city");
quoteAdress.setGroup("324");
Quote_Person quote_Person = (Quote_Person) context.newObject("Quote_Person");
quote_Person.setSalary(10000);
quote_Person.setName("Arcadi");
quote_Person.setGroup("107324");
quote_Person.setAddressRel(quoteAdress);
context.commitChanges();
SelectQuery q = new SelectQuery(QuoteAdress.class);
List objects = context.performQuery(q);
assertEquals(1, objects.size());
SelectQuery qQuote_Person = new SelectQuery(Quote_Person.class);
List objects2 = context.performQuery(qQuote_Person);
assertEquals(1, objects2.size());
QuoteAdress quoteAdress2 = (QuoteAdress) context.newObject("QuoteAdress");
quoteAdress2.setCity("city2");
Quote_Person quote_Person2 = (Quote_Person) context.newObject("Quote_Person");
quote_Person2.setSalary(100);
quote_Person2.setName("Name");
quote_Person2.setGroup("1111");