[jira] Closed: (CAY-929) SelectTranslator support for standard SQL join syntax, including outer joins

From: Andrus Adamchik (JIRA) ("Andrus)
Date: Tue Apr 29 2008 - 17:23:52 EDT

  • Next message: Andrus Adamchik (JIRA): "[jira] Commented: (CAY-560) Add support for outer joins"

         [ https://issues.apache.org/cayenne/browse/CAY-929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Andrus Adamchik closed CAY-929.
    -------------------------------

           Resolution: Fixed
        Fix Version/s: 3.0

    > SelectTranslator support for standard SQL join syntax, including outer joins
    > ----------------------------------------------------------------------------
    >
    > Key: CAY-929
    > URL: https://issues.apache.org/cayenne/browse/CAY-929
    > Project: Cayenne
    > Issue Type: Improvement
    > Components: Cayenne Core Library
    > Affects Versions: 3.0
    > Reporter: Ari Maniatis
    > Assignee: Andrus Adamchik
    > Fix For: 3.0
    >
    >
    > Currently select translator generates JOIN syntax in an old fashion way - adds all participating tables to the FROM clause of the query, adds join conditions to the WHERE clause. Among other things this limits us to only INNER JOINS on almost all DB's (except for maybe Oracle). Will need to change the translator to generate modern cross-db explicit join syntax that places all tables and conditions in the FROM clause. E.g.:
    > Old: SELECT ... FROM ARTIST t0, PAINTING t1 WHERE t0.ARTIST_ID = t1.ARTIST_ID
    > New: SELECT ... FROM ARTIST t0 JOIN PAINTING t1 ON (t0.ARTIST_ID = t1.ARTIST_ID)
    > Things to consider:
    > * Check all DbAdapters to see if some override the join generation methods and therefore need to be updated
    > * This feature does not change the fact that SelectQuery itself still will not support explicit outer joins in the qualifier
    > * Still the new API for joins should allow callers to specify what kind of join they want (so that we could use it in prefetches down the line)
    >

    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    



    This archive was generated by hypermail 2.0.0 : Tue Apr 29 2008 - 17:27:38 EDT