thx Farzad.
I have check that
quote method is used at org.hibernate.sql.Template renderOrderByStringTemplate and renderWhereStringTemplate,
the codes are:
Code:
result.append(TEMPLATE)
.append('.')
.append( dialect.quote(token) );
and
Code:
result.append(placeholder)
.append('.')
.append( dialect.quote(token) );
it seams no problem, (because it has "
*.*", it will not have problem.).
The reason why I want to change the Insert class is that:
usually, the user just care about the column name, doesn't care about the name is keyword or not (I think). If the the name is key word, as you suggested, it should change the mapping name (add the quote). it doesn't like what we usually do.
so, for more easier to use, I suggest to change the Insert Class.
Code:
buf.append(dialect.openQuote());//to avoid key word for sql script
buf.append( iter.next() );
buf.append(dialect.closeQuote());//
improve HB, right?
^-^