Esempio n. 1
0
 @Test
 public void testFindByProperty() throws Exception {
   Address address = new Address();
   address.setCity("xian");
   List<RentGoods> rentGoodsList = rentGoodsDao.findByProperty("address.city", "xian", 1, -1);
   System.out.println(rentGoodsList);
 }
Esempio n. 2
0
 @Test
 public void testFindByAddress() throws Exception {
   Address address = new Address();
   address.setCity("xian");
   address.setCountry("changan");
   address.setProvince("shanxi");
   address.setDistrict("xianyoudian");
   List<RentGoods> list = rentGoodsDao.findByAddress(address, 1, -1);
   System.out.println(list);
 }