Cayenne
  1. Cayenne
  2. CAY-1574

Cayenne Modeler is inconsistent when adding Embeddables

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.0.1
    • Fix Version/s: None
    • Component/s: Modeler
    • Labels:
      None
    • Environment:
      All.

      Description

      When entering an Embeddable in Cayenne Modeler:

      If on the ObjEntity/Attribute tab, you add an attribute and type in the ObjAttribute and Java Type directly, the project will fail to validate with a missing DbAttribute error.

      If on the ObjEntity/Attribute tab, you add an attribute and then inspect the new attribute and select the Embeddable from the pulldown of types, the project will pass validation.

      The model/XML is actually different between the two options (the first shown here is when doing it the "correct" way):

      mrg@apad:~/Projects$ diff WobberyDomainMap.map.xml*
      88c88
      < <embedded-attribute name="settings" type="net.wobbery.entity.MatchSettings"/>

      > <obj-attribute name="settings" type="net.wobbery.entity.MatchSettings"/>

        Activity

        Hide
        Michael Gentry added a comment -

        BTW, the quickest "fix" for this is to document the behavior and how to correctly use the Embeddable. Currently, the documentation stops short of how to enter the Embeddable.

        Show
        Michael Gentry added a comment - BTW, the quickest "fix" for this is to document the behavior and how to correctly use the Embeddable. Currently, the documentation stops short of how to enter the Embeddable.
        Hide
        Michael Gentry added a comment -

        I updated the documentation and lowered the priority of the ticket.

        Show
        Michael Gentry added a comment - I updated the documentation and lowered the priority of the ticket.
        Hide
        Michael Gentry added a comment -

        I'm having trouble replicating this problem consistently. Will continue to try to isolate the issue.

        Show
        Michael Gentry added a comment - I'm having trouble replicating this problem consistently. Will continue to try to isolate the issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Michael Gentry
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development