<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Jörg,<br>
    I tried to fix the Proposal type on my own and it seemed the
    following code would bring proper values to the "Include in Label"
    child of the association:<br>
    <br>
    TopicType tt = dm4.getTopicType(NS("proposal"));<br>
tt.getAssocDef("dm4.datetime.date#dm4.events.from").getChildTopics().set("dm4.core.include_in_label",
    false);<br>
tt.getAssocDef("dm4.datetime.date#dm4.events.to").getChildTopics().set("dm4.core.include_in_label",
    false);<br>
    <br>
    In DM 4.8.4+4.8.5 this leads to a ClassCastException:<br>
    <br>
    Caused by: java.lang.ClassCastException:
    de.deepamehta.core.impl.AssociationModelImpl cannot be cast to
    de.deepamehta.core.model.AssociationDefinitionModel<br>
        at
de.deepamehta.core.impl.AssociationDefinitionModelImpl.postUpdate(AssociationDefinitionModelImpl.java:170)<br>
        at
de.deepamehta.core.impl.DeepaMehtaObjectModelImpl.update(DeepaMehtaObjectModelImpl.java:400)<br>
        ... 31 more<br>
    <br>
    Do you think this needs to be fixed in DM? Should I file a bug
    report?<br>
    <br>
    All the best,<br>
    Robert<br>
    <br>
    <div class="moz-cite-prefix">On 17.01.2017 17:20, Robert Schuster
      wrote:<br>
    </div>
    <blockquote
      cite="mid:6f74cd0a-431b-df51-124e-673109528a75@gmail.com"
      type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      Hi Jörg,<br>
      ok I got it now.<br>
      <br>
      Yes, you were right, the "Include in Label" topics are missing for
      two of "Proposal"'s child types. These are:<br>
      <br>
      "dm4.events.from"<br>
      "dm4.events.to"<br>
      <br>
      I added those to the Proposal in an earlier migration by running:<br>
      <br>
              return dm4.getTopicType(topicTypeUri)<br>
                  .addAssocDef(<br>
                     
      mf.newAssociationDefinitionModel("dm4.core.aggregation_def",
      "dm4.events.from",<br>
                          topicTypeUri, "dm4.datetime.date",
      "dm4.core.many", "dm4.core.one"))<br>
                  .addAssocDef(<br>
                     
      mf.newAssociationDefinitionModel("dm4.core.aggregation_def",
      "dm4.events.to",<br>
                          topicTypeUri, "dm4.datetime.date",
      "dm4.core.many", "dm4.core.one"));<br>
      <br>
      <br>
      (This means other types in my project affected by this problem too
      but its harmless because I am not changing their label config
      atm).<br>
      <br>
      I understand, that I need to fix those types now. But at the same
      time creating an association definition with the above method
      should not result in broken types, right?<br>
      <br>
      All the best,<br>
      Robert<br>
      <br>
      <div class="moz-cite-prefix">On 17.01.2017 16:57, Jörg Richter
        wrote:<br>
      </div>
      <blockquote
        cite="mid:4319166A-EBA5-4B67-A505-9CB045388AE2@deepamehta.de"
        type="cite">
        <div class=""><br class="">
        </div>
        <div class="">Hi Robert,</div>
        <div class=""><br class="">
        </div>
        <div class="">"assoc def" (= Association Definition) is just a
          generic term for either a "Composition Definition" or an
          "Aggregation Definition", that is the very associations that
          are used to define your composite types.</div>
        <div class=""><br class="">
        </div>
        <div class="">As an example in the attached screenshot you see
          the 2 assoc defs of the "Note" type. When you select an assoc
          def, in the detail panel you're supposed to see an "Include in
          Label (1) (Composition)" entry. This is the topic (of type
          "Include in Label") that holds the (boolean) "Include in
          Label" value for that assoc def. (In the screenshot the
          Include in Label topics for both assoc defs are revealed in
          the topicmap.) Each assoc def is expected to be associated
          with exactly one Include in Label topic.</div>
        <div class=""><br class="">
        </div>
        <div class="">Please check if the Include in Label topics exist
          for all assoc defs of your problematic parent type. My
          hypothesis is that (at least) one of the Include in Label
          topics are missing in your DB. If you can confirm that we can
          see how to repair your DB.</div>
        <div class=""><br class="">
        </div>
        <div class=""><br class="">
        </div>
        <div class=""><img apple-inline="yes"
            id="C5F036D0-8631-457A-99B0-35CFBE1C955D" apple-width="yes"
            apple-height="yes"
            src="cid:part1.65DEAF03.9F278C93@gmail.com" class=""
            height="457" width="549"></div>
        <div class=""><br class="">
        </div>
        <br class="">
        <blockquote type="cite" class="">On 17 Jan 2017, at 16:22,
          Robert Schuster <<a moz-do-not-send="true"
            href="mailto:robert.schuster.rs01@gmail.com" class="">robert.schuster.rs01@gmail.com</a>>
          wrote:<br class="">
          <br class="">
          I can't quite follow here. What topic (type) exactly you mean
          with "the assoc def". I could only find the "Include in Label"
          with its 107 instantiations. Should I start from the Proposol
          topic type?<br class="">
        </blockquote>
        <br class="">
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="72">-- 
Robert Schuster
freiberuflicher Softwareingenieur

RS01 - IT-Systemanalyse und -entwicklung Robert Schuster
Brückenstraße 4 • 12439 Berlin
+49 157 798 00 310
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:robert.schuster.rs01@gmail.com">robert.schuster.rs01@gmail.com</a>

</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Robert Schuster
freiberuflicher Softwareingenieur

RS01 - IT-Systemanalyse und -entwicklung Robert Schuster
Brückenstraße 4 • 12439 Berlin
+49 157 798 00 310
<a class="moz-txt-link-abbreviated" href="mailto:robert.schuster.rs01@gmail.com">robert.schuster.rs01@gmail.com</a>

</pre>
  </body>
</html>