From: David A. <web...@av...> - 2009-12-15 14:55:21
|
On Dec 14, 2009, at 5:20 PM, Chuck Hill wrote: > > On Dec 14, 2009, at 2:07 PM, Mike Schrag wrote: > >>> Cough. >>> String.class.getName() returns "java.lang.String" >>> getSimpleName() is the method you want. >> no it is not, Captain Setting-Him-Up-For-Bugs :) this is presuming >> that you are using a 1 to 1 mapping of class names to entities, >> which isn't necessarily true (even though it might USUALLY be true). >> you should 100% be using MyEntity.ENTITY_NAME. > > Who am I to know what evil lurks in the hearts of men? Funny, I thought you were the absolute authority on that topic. Dave David Avendasora Senior Software Engineer K12, Inc. ***** WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/ ***** WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html ***** |