Exemple #1
0
 @Test
 public void List_Keys() {
   User u =
       where(user.firstName.eq("Jaakko")).list(user.firstName, user.mainAddress().street).get(0);
   assertEquals("Jaakko", u.getFirstName());
   assertNull(u.getLastName());
   assertEquals("Aakatu", u.getMainAddress().street);
   assertNull(u.getMainAddress().postCode);
 }
Exemple #2
0
 @Test
 public void LongPath() {
   assertEquals(2, query().where(user.mainAddress().city().name.eq("Helsinki")).count());
   assertEquals(2, query().where(user.mainAddress().city().name.eq("Tampere")).count());
 }