Re: veogen relationship.isInverseRelationship?

From: Lachlan Deck (lachlan.dec..mail.com)
Date: Wed Aug 06 2008 - 09:22:10 EDT

  • Next message: Fredrik Lindgren (JIRA): "[OS-JIRA] Created: (WOL-880) Entity Modeler - Prefix for Entity does not accept a dot in the end."

    On 06/08/2008, at 8:45 PM, David Avendasora wrote:

    > Unfortunately that's not what it means.
    >
    > According to the method signature (from http://svn.objectstyle.org/repos/woproject/trunk/woproject/wolips/core/plugins/org.objectstyle.wolips.eomodeler.core/java/org/objectstyle/wolips/eomodeler/core/model/EORelationship.java)
    > :
    > public boolean isInverseRelationship(EORelationship _relationship) {
    > What relationship.isInverseRelationship is checking is to see if
    > this relationship is the inverse of the specified relationship.

    Ah. Thanks.

    > Since you are not passing (can't pass?) a relationship to it for
    > comparison it will return false. I think what you want for a check
    > is going to be:
    >
    > Try:
    >
    > #if (relationship.inverseRelationship != null)
    > your code here
    > #end
    >
    > I'm not sure if velocity will use null as a comparator,

    http://wiki.apache.org/velocity/CheckingForNull
    #if (relationship.inverseRelationship)
      your code here
    #end

    Thanks.
    with regards,

    --
    

    Lachlan Deck



    This archive was generated by hypermail 2.0.0 : Wed Aug 06 2008 - 09:23:29 EDT