Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [higgins-dev] My position on EntityId

I like that.  I'm not quite sure how to map it to IContext.getEntityID()
though.  On one hand, we could say getEntityID always returns (only) the
canonical ID, but if one doesn't exist (only synonyms exist) people may
think it's weird to return null.

>>> Paul Trevithick <paul@xxxxxxxxxxxxxxxxx> 09/17/08 8:26 AM >>>

I have added my thoughts here:
http://wiki.eclipse.org/EntityId_Requirements

Here is a summary of my position (expressed in more detail on the wiki
page):

I am open to supporting the “moral equivalent” of 0..n EntityIds that
Tony desires but I need someone to present at least one real-world
use-case to motivate it (I’ve not been able to come up with one). 

By “moral equivalent” I mean:

0..1 “canonical” EntityId. This EntityId is unique AT LEAST within the
scope of its containing Context. This EntityId MUST be immutable. 

0..n synonyms. These are represented as 0..n values of a new defined
Attribute type called something like higgins:synonym


-Paul 


------------------- TEXT.htm follows ------------------- 
<html>
  <head>
    <style type=3D"text/css">
      <!--
        body { line-height: normal; font-variant: normal; margin-bottom: =
1px; margin-top: 4px; margin-left: 4px; margin-right: 4px }
        p { margin-top: 0; margin-bottom: 0 }
      -->
    </style>
   =20
  </head>
  <body http-equiv=3D"Content-Type" content=3D"text/html; charset=3DISO-885=
9-1">
    <p style=3D"margin-bottom: 0; margin-top: 0">
      <font size=3D"2" face=3D"Dialog">I like that. &nbsp;I&#39;m not =
quite sure how to map it to IContext.getEntityID&#40;&#41; though. =
&nbsp;On one hand&#44; we could say getEntityID always returns &#40;only&#4=
1; the canonical ID&#44; but if one doesn&#39;t exist &#40;only synonyms =
exist&#41; people may think it&#39;s weird to return null.</font><br><br>&g=
t;&gt;&gt; Paul Trevithick &lt;paul@xxxxxxxxxxxxxxxxx&gt; 09/17/08 8:26 AM =
&gt;&gt;&gt;<br>    </p>
    <div style=3D"font-size: 11pt">
      <p style=3D"margin-bottom: 0; margin-top: 0">
        I have added my thoughts here:<br><a href=3D"http://wiki.eclipse.or=
g/EntityId_Requirements">http://wiki.eclipse.org/EntityId_Requirements</a><=
br><br>Here is a summary of my position &#40;expressed in more detail on =
the wiki page&#41;:<br>      </p>
    </div>
    <ul>
      <li>
        <div style=3D"font-size: 11pt">
          <p style=3D"margin-bottom: 0; margin-top: 0">
            I am open to supporting the&#160;&#8220;moral equivalent&#8221;=
&#160;of 0..n EntityIds that Tony desires but I need someone to present at =
least one real-world use-case to motivate it &#40;I&#8217;ve not been able =
to come up with one&#41;.          </p>
        </div>
      </li>
      <li>
        <div style=3D"font-size: 11pt">
          <p style=3D"margin-bottom: 0; margin-top: 0">
            By&#160;&#8220;moral equivalent&#8221;&#160;I mean:<br>        =
  </p>
        </div>
        <ul>
          <li>
            <div style=3D"font-size: 11pt">
              <p style=3D"margin-bottom: 0; margin-top: 0">
                0..1&#160;&#8220;canonical&#8221;&#160;EntityId. This =
EntityId is unique AT LEAST within the scope of its containing Context. =
This EntityId MUST be immutable.              </p>
            </div>
          </li>
          <li>
            <div style=3D"font-size: 11pt">
              <p style=3D"margin-bottom: 0; margin-top: 0">
                0..n synonyms. These are represented as 0..n values of a =
new defined Attribute type called something like higgins:synonym<br>       =
       </p>
            </div>
          </li>
        </ul>
      </li>
    </ul>
    <div style=3D"font-size: 11pt">
      <p style=3D"margin-bottom: 0; margin-top: 0">
        <br>
        -Paul
      </p>
    </div>
  </body>
</html>


Back to the top