Uploaded image for project: 'Click'
  1. Click
  2. CLK-690

Common ORM layer/package

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: extras
    • Labels:
      None

      Description

      Please introduce a common ORM layer/package. Something like "org.apache.click.extras.orm" .
      Just too much of the various Click ORM code look the same, so it could be in this package.

      If there would be a "generic"(common) ORM implementation:

      • the Click Pages would be really ORM independent, allowing to simply switch the ORM just by changing the filter in web.xml.
      • support for many more ORMs could come: lot of code wouldn't be duplicated. Click could be listed in more places.
      • a tutorial about Click+ORM would be 95% usable for any ORM with such a functionality - no need for extra documentation.

      <pre>
      CayenneForm \
      HibernateForm | -> org.apache.extra.orm.EntityForm
      JPAForm |
      BatisForm /

      PropertySelect -> org.apache.extra.orm.PropertySelect
      QuerySelect -> org.apache.extra.orm.QuerySelect
      </pre>

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              george George Stan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: