Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2042

Remove an arbitrary limitation on 1000 runtime DbRelationships

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Done
    • 4.0.M2, 3.1, 3.0.3
    • 4.0.M3, 3.1.1
    • None
    • None

    Description

      Currently we do not allow more then 1000 runtime DbRelationships in EntityResolver [1] (see 'makeUniqueRelationshipName'). This number is arbitrary and is really just a side effect of the runtime rel name generation mechanism. And there are real cases reported when it is problematic.

      So at the minimum we need to increase this limit, but ideally we should probably provide a better then O(N) mechanism for unique name generation here.

      [1] https://github.com/apache/cayenne/blob/master/cayenne-server/src/main/java/org/apache/cayenne/map/EntityResolver.java

      Attachments

        Activity

          People

            SavvaKolbachev Savva Kolbachev
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: