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

DBRE JoinColumn of same JoinColumns must have same insertable and updatable values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.1.4.RELEASE
    • Fix Version/s: 1.1.4.RELEASE
    • Component/s: PERSISTENCE
    • Environment:
      Linux Ubuntu 10.10, Apache Maven 3.0.2, Java 1.6.0_23, PostgreSQL 8.2.9, Commit 79bf6a92542ec54860baad787b62340cf7e3ddee

      Description

      When 'database reverse engineer' command generates multiple JoinColumn in a property, the insertable and updatable attributes must have the same value on each JoinColumn.

      @ManyToOne
      @JoinColumns({ @JoinColumn(name = "aplicacion", referencedColumnName = "aplicacion", nullable = false, insertable = false, updatable = false), @JoinColumn(name = "rolusuar", referencedColumnName = "usuario", nullable = false) })
      private TcomAplusu TcomAplusu.tcomAplusu;
      

      Previous configuration crash with "Mixing insertable and non insertable columns in a property is not allowed: org.gvnix.test.dbre.acuses.TcomAplusu.tcomAplusu"

      Error can be resolved with:

      @ManyToOne
      @JoinColumns({ @JoinColumn(name = "aplicacion", referencedColumnName = "aplicacion", nullable = false, insertable = false, updatable = false), @JoinColumn(name = "rolusuar", referencedColumnName = "usuario", nullable = false, insertable = false, updatable = false) })
      private TcomAplusu TcomAplusu.tcomAplusu;
      

        Attachments

          Activity

            People

            Assignee:
            stewarta Alan Stewart
            Reporter:
            mmartinez Mario Martínez Sánchez - gvNIX - DISID
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 3h
                3h
                Remaining:
                Remaining Estimate - 3h
                3h
                Logged:
                Time Spent - Not Specified
                Not Specified