assertEquals("555555555555", list.get(0));
}
public void testCompositeKeyMapping() throws SQLException {
Order order1 = (Order) sqlMap.queryForObject("getOrderWithFavouriteLineItem", new Integer(1));
Order order2 = (Order) sqlMap.queryForObject("getOrderWithFavouriteLineItem", new Integer(2));
assertNotNull(order1);
assertNotNull(order1.getFavouriteLineItem());
assertEquals(2, order1.getFavouriteLineItem().getId());
assertEquals(1, order1.getFavouriteLineItem().getOrderId());
assertNotNull(order2);
assertNotNull(order2.getFavouriteLineItem());
assertEquals(1, order2.getFavouriteLineItem().getId());
assertEquals(2, order2.getFavouriteLineItem().getOrderId());
}