コード例 #1
0
  @Test
  public void should_use_custom_names_from_property() {
    String sql = sqlWriter.insert(CustomNamePropertyEntity.class);

    assertEquals("INSERT INTO myTableName(customDateColumn) VALUES(?)", Utils.singleLine(sql));
  }
コード例 #2
0
  @Test
  public void should_use_field() {
    String sql = sqlWriter.insert(SimpleEntity.class);

    assertEquals("INSERT INTO SimpleEntity(name) VALUES(?)", Utils.singleLine(sql));
  }