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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Complete
    • 1.1.0.M1
    • 1.1.0.M2
    • @ CORE
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: