extra 4 chars every time? ewwww ... :)
On Jan 12, 2008, at 11:54 AM, Anjo Krank wrote:
> Hm, just use
>
> public class MyEO ..
> public interface Key {
> public String FOO_KEY = ...;
> public ERXKey foo = ...;
> }
> }
>
> and then eo.valueForKey(MyEO.Key.foo)...
>
> Am 12.01.2008 um 17:34 schrieb mschra..bjectstyle.org:
>
>> Author: mschrag
>> Date: 2008-01-12 11:34:18 -0500 (Sat, 12 Jan 2008)
>> New Revision: 4761
>>
>> Modified:
>> trunk/woproject/wolips/core/plugins/
>> org.objectstyle.wolips.eogenerator.core/templates/_WonderEntity.java
>> Log:
>> I like how it looks lowercase but it generates tons of attribute
>> hiding warnings
>>
>> Modified: trunk/woproject/wolips/core/plugins/
>> org.objectstyle.wolips.eogenerator.core/templates/_WonderEntity.java
>> ===================================================================
>> --- trunk/woproject/wolips/core/plugins/
>> org.objectstyle.wolips.eogenerator.core/templates/
>> _WonderEntity.java 2008-01-09 16:17:06 UTC (rev 4760)
>> +++ trunk/woproject/wolips/core/plugins/
>> org.objectstyle.wolips.eogenerator.core/templates/
>> _WonderEntity.java 2008-01-12 16:34:18 UTC (rev 4761)
>>.. -23,13 +23,13 @@
>> // Attributes
>> #foreach ($attribute in $entity.sortedClassAttributes)
>> public static final String $
>> {attribute.uppercaseUnderscoreName}_KEY = "$attribute.name";
>> - public static final ERXKey ${attribute.name} = new ERXKey($
>> {attribute.uppercaseUnderscoreName}_KEY);
>> + public static final ERXKey ${attribute.uppercaseUnderscoreName} =
>> new ERXKey(${attribute.uppercaseUnderscoreName}_KEY);
>> #end
>>
>> // Relationships
>> #foreach ($relationship in $entity.sortedClassRelationships)
>> public static final String $
>> {relationship.uppercaseUnderscoreName}_KEY = "$relationship.name";
>> - public static final ERXKey ${relationship.name} = new ERXKey($
>> {relationship.uppercaseUnderscoreName}_KEY);
>> + public static final ERXKey $
>> {relationship.uppercaseUnderscoreName} = new ERXKey($
>> {relationship.uppercaseUnderscoreName}_KEY);
>> #end
>>
>> private static Logger LOG = Logger.getLogger($
>> {entity.prefixClassNameWithoutPackage}.class);
>>
>
This archive was generated by hypermail 2.0.0 : Sat Jan 12 2008 - 13:44:46 EST