Hello All,

When coding OJB queries you can code the following;

crit1.addLike("firstname", "%o%");
crit1.addLike("lastname", "%m%");


where firstname and lastname are the names of columns in the table.

If you where to change the name of a column you would not know your code was
broken until the query was run containing the invalid column name.

Does any one have a way of making this problem show up at compile time?

I was considering using constants stored in my model class.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to