Exemplo n.º 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));
  }
Exemplo n.º 2
0
  @Test
  public void should_use_field() {
    String sql = sqlWriter.insert(SimpleEntity.class);

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