Re: Can't modify EO objects! ARGH! =(
Re: Can't modify EO objects! ARGH! =(
- Subject: Re: Can't modify EO objects! ARGH! =(
- From: Art Isbell <email@hidden>
- Date: Thu, 17 Jul 2003 11:36:03 -1000
On Thursday, July 17, 2003, at 10:23 AM, Chuck Hill wrote:
To see the SQL being sent by the app:
public static void logSQL(boolean shouldLog) {
if (shouldLog) {
NSLog.allowDebugLoggingForGroups(NSLog.DebugGroupSQLGeneration
| NSLog.DebugGroupDatabaseAccess
| NSLog.DebugGroupEnterpriseObjects);
} else {
NSLog.refuseDebugLoggingForGroups(NSLog.DebugGroupSQLGeneration
| NSLog.DebugGroupDatabaseAccess
| NSLog.DebugGroupEnterpriseObjects);
}
}
I find that rather than changing Java code, adding the launch argument
"-EOAdaptorDebugEnabled true" to be much more convenient. The above
approach can be more flexible in that you can turn on various types of
debugging, maybe via a custom launch argument to avoid the need to
modify code.
P.P.S. Hungarian naming is ugly and unnecessary in Java.
I think that some Hungarian naming is still useful in Java such as to
distinguish local from instance from global variables. But it's always
best to adhere to Java naming conventions like starting method names
with lowercase characters. Some like to use an underbar for the
initial character of private instance variables and methods.
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.