Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2725

Add possibility for bidirectional 1:1 relationships

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.5.RELEASE, 1.2.0.RC1
    • None
    • None
    • 1.2.0.BUILD-SNAPSHOT [rev b00913d], win7 64 ultimate

    Description

      strong*1.*strong when adding a field reference [...] --cardinality ONE_TO_ONE to two entities to get a bidirectional 1:1, exception occurs:
      java.lang.IllegalArgumentException: Invalid dependency between upstream 'MID:org.springframework.roo.addon.dod.DataOnDeman dMetadata#SRC_TEST_JAVA?[...].domain.ClassADataOnDemand' and downstream 'MID:org.springframework.roo.addon.dod.DataOnDeman dMetadata#SRC_TEST_JAVA?[...].domain.ClassBDataOnDemand
      This should be already fixed according to ROO-2322 (https://jira.springsource.org/browse/ROO-2322)?

      strong*2.*strong at the moment it's not possible to add strong--mappedBy*strong* to a field reference [...] --cardinality ONE_TO_ONE relationship, you can only add JPA mappedBy manually.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tiny969 markus theinschnack
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: