@Test public void should_use_custom_names_from_property() { String sql = sqlWriter.insert(CustomNamePropertyEntity.class); assertEquals("INSERT INTO myTableName(customDateColumn) VALUES(?)", Utils.singleLine(sql)); }
@Test public void should_use_field() { String sql = sqlWriter.insert(SimpleEntity.class); assertEquals("INSERT INTO SimpleEntity(name) VALUES(?)", Utils.singleLine(sql)); }