Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The spring cartridge doc states that if I model a composition between two
      classes (and set the multiplicty to "1 to many"), this will result in an eager loading collection in the hibernate mapping file, like this:

      <class name="sample.BookingImpl" table="BOOKING">
      <set name="items" order-by="BOOKING_FK" lazy="false" outer-join="auto" inverse="true" cascade="delete">
      <key>
      <column name="BOOKING_FK"/>
      </key>
      <one-to-many class="sample.ItemImpl"/>
      </set>
      </class>

      I tried to apply this to my model, but to no avail. Since I am
      not using MagicDraw (but Together Designer with a custom made XMI export
      filter), I first suspected an error in the produced XMI. After having spent
      some time comparing the XMI of Magic and my own XMI, I found that they are
      quite similar.

      So I decided to have a second look at the test model for the cartridge, which contains quite a
      number of compositions - but none of them gets mapped to an eagerly loading
      collection. This is why I suspect a bug in the cartridge.

        Attachments

          Activity

            People

            • Assignee:
              overheat overheat
              Reporter:
              freter Peter Friese
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: