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

Implement flattened attributes in Cayenne

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.0M3
    • Core Library
    • None

    Description

      We need to support flattened attributes in Cayenne.... JPA has a @SecondaryTable annotation, that is essentially a one step flattened attribute and IIRC Andriy implemented a similar mapping scenario long time ago (Cayenne 1.1), only without a Modeler support. So we need to finally make it official, create test cases, modeler support, etc.

      In Cayenne API terms, flattened attribute is an object attribute mapped over a DbRelationship to a joined table column. A few things to consider:

      • Whether to support multi-step flattened attributes
      • Whether to load such attributes eagerly or lazily (JPA's default for @Basic is EAGER, but it is configurable...)

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: