This one time, at band camp, Avalivin Jhons said:
AJ>I am not very familiar with how Castor works internally.
AJ>
AJ>Can anybody tell me how can I know what is the SQL command that Castor is going to
execute?
AJ>
AJ>The mapping.setLogWriter( writer ) and jdo.setLogWriter(writer) is logging SQL
for loading, creating, updating and so no. But I get a SQLException excep 1ORA-01747:
invalid user.table.column, table.column, or column specification when caster execute
db.commit(). Could not find any relevant log message which can cause the problem.
AJ>
AJ>So I want to know about the SQL statement, which is causing problem.
AJ>
AJ>I want to add that this happens only when I change the value of the retrieved
object through corresponding setAccessor() methods and then issue a db.commit() to
update the object.
Avalovin,
Depending on which version of Castor you're using, the answer will
vary. In the CVS version, I recently switched the logging over to make
use of Log4J so the logging can be easily traced. If you're using the
last released version of Castor, it is still using the old logging and
we'll probably need to change some code to add logging for the items
you want to see. Please let me know what version you're using and we
can get you what you need.
Bruce
--
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
The Castor Project
http://www.castor.org/
Apache Geronimo
http://incubator.apache.org/projects/geronimo.html
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev