> But there is a problem with this solution. The sql statements are
generated
> somewhere inside torque, not in the peer classes. If I have a criteria in
> the peer classes, I can get most of the information from this criteria.
But
> if I do a BaseRecord.save(), which is actually outside of the peer class,
> but in the same layer, I don't have the information how the sql
statements
> looks like.

Statements for queries are generated inside Torque, and you can log them
via Criteria.toString after the adjustments to criteria are made. The
statements for inserts are generated inside village, and there is currently
no good way to get them. The options are:
- patch village
- use a logging jdbc driver (P6Spy)
But neither fulfills the requirements of logging the statements for just a
single table. Sorry, this is the best I can think of.

     Thomas


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

Reply via email to