Wondering what is the best way to use it:
StringBuilder query = new StringBuilder(" Select * from mytable t where ");
for ( Object object : objects ) {
query.append(" t.field = " + object.field ); // this one OR
query.append( object.field ); // this one?
}
Not sure which one is recommended to use.
query.append(" t.field = ").append(object.field);