[OS-JIRA] Created: (WOL-1189) [PATCH] EO templates with better keypath creation

From: John Huss (JIRA) ("John)
Date: Mon Nov 15 2010 - 21:34:19 UTC

  • Next message: Pascal Robert: "Windows hiding themselves in the background"

    [PATCH] EO templates with better keypath creation
    -------------------------------------------------

                     Key: WOL-1189
                     URL: http://issues.objectstyle.org/jira/browse/WOL-1189
                 Project: WOProject/WOLips
              Issue Type: Improvement
              Components: WOLips General
        Affects Versions: WOLips Nightly
                Reporter: John Huss
                Priority: Minor
             Attachments: template_keypath_improvement.txt

    This improves the construction of key paths in the EO templates by creating an inner class in each eo class that exposes methods for appending each of it's keys to a key path that is being built. Then you can construct key paths like this:

    // returns talent.photo.photo
    MovieRole.path.talent().photo().photo().key()

    // returns qualifier for talent.roles.roleName
    TalentPhoto.path.talent().roles().roleName().eq("Actor")

    This is a big improvement over the current way of constructing key paths with ERXKey. This requires a very recent change to ERXKey that was just committed.

    This is a revised version of the template that seeks to minimize namespace collisions. Still, there remains a possibility of collisions.

    A patch for _WonderEntity.java is attached.

    -- 
    This message is automatically generated by JIRA.
    -
    If you think it was sent incorrectly contact one of the administrators: http://issues.objectstyle.org/jira/secure/Administrators.jspa
    -
    For more information on JIRA, see: http://www.atlassian.com/software/jira
    



    This archive was generated by hypermail 2.0.0 : Mon Nov 15 2010 - 21:35:00 UTC