@Test
public void testExecuteNamedUpdate() {

	deleteAll(Owner.class);
	if(db.getPlatform() instanceof OraclePlatform){
		// oracle must specified id but other database is not need.
		assertEquals(1,dao.executeNamedUpdate("simpleInsertOwner_oracle", new Object[]{1,"a","b", new Date(),new Date()}));
	}else{
		assertEquals(1,dao.executeNamedUpdate("simpleInsertOwner", new Object[]{"a","b", new Date(),new Date()}));
	}
	assertEquals(1, Owner.count());
	deleteAll(Owner.class);
	
	Map<String, Object> params = new HashMap<String, Object>();
	params.put("id",2);
	params.put("firstName", "c");
	params.put("lastName",  "d");
	params.put("now", new Date());
	if(db.getPlatform() instanceof OraclePlatform){
		assertEquals(1, dao.executeNamedUpdate("simpleInsertOwner1_oracle",params));
	}else{
		assertEquals(1, dao.executeNamedUpdate("simpleInsertOwner1",params));
	}
	assertEquals(1, Owner.count());
}