jodd-db/src/main/java/jodd/db/oom/sqlgen/DbEntitySql.java
public DbSqlBuilder findByColumn(final Class entity, final String column, final Object value) {
		final String tableRef = createTableRefName(entity);
		return sql().$(SELECT).column(tableRef).$(FROM).table(entity, tableRef).$(WHERE).ref(tableRef, column).$(EQUALS).columnValue(value);
	}
public DbSqlBuilder findByColumn(final Class entity, final String column, final Object value) {
		final String tableRef = createTableRefName(entity);
		return sql().$(SELECT).column(tableRef).$(FROM).table(entity, tableRef).$(WHERE).ref(tableRef, column).$(EQUALS).columnValue(value);
	}
public DbSqlBuilder findByColumn ( final Class entity , final String column , final Object value ) { final String tableRef = createTableRefName ( entity ) ; return sql ( ) . $ ( SELECT ) . column ( tableRef ) . $ ( FROM ) . table ( entity , tableRef ) . $ ( WHERE ) . ref ( tableRef , column ) . $ ( EQUALS ) . columnValue ( value ) ; }
Creates SELECT criteria for the entity matched by column name
Creates SELECT criteria for the entity matched by column name