Uploaded image for project: 'The AndroMDA project'
  1. The AndroMDA project
  2. ANDROMDA-799

hibernate inheritance subclasses in table has non-null columns

    Details

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

      Description

      when using hibernate inheritance with the subclass-in-table strategy the subclass columns still have non-null columns (unless their multiplicity has been set to 0..1 in the model)

      I have tried to get it to work because Chad told me you have fixed it. I took a look at the fix and the implementation looks all right to me.

      Have you tested this by adding a test to the test model ? Did you check the output ?

      My model is very simple: 1 parent and 3 children, the parent has two attributes and only one of the children has an attribute for now .. this child attribute has not-null="true" in the hibernate mapping and therefore the scmea export tool generated a non-null constraint on the corresponding column.

      If I find the time I will add this test to the test model (in case it's not there yet)

        Attachments

          Activity

            People

            • Assignee:
              overheat Plushnikov Michail
              Reporter:
              wouter Wouter Zoons
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: