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

DataOnDemand does not respect the optional=false attribute of @ManyToOne

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.1.0.M1
    • Fix Version/s: 1.1.0.M2
    • Component/s: @ CORE
    • Labels:
      None
    • Environment:
      n/a

      Description

      When specifying a ManyToOne annotation, the optional = false attribute implies a NOT NULL column. However, the DataOnDemand aspect will not populate the field, or provide the link to the related DataOnDemand bean unless @NotNull is explicitly included.

      Proposed fix: Have @ManyToOne(optional = false) cause the same behaviour as @NotNull

        Attachments

          Activity

            People

            Assignee:
            stewarta Alan Stewart
            Reporter:
            simonellistonball simon elliston ball
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: