Support for per-adapter customization of EJBQL translator
---------------------------------------------------------

                 Key: CAY-819
                 URL: https://issues.apache.org/cayenne/browse/CAY-819
             Project: Cayenne
          Issue Type: Task
          Components: Cayenne Core Library
    Affects Versions: 3.0
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik
             Fix For: 3.0


One the important features of EJBQL query is that, just like SelectQuery its 
synatx is DB-independent . Therefore we need a mechanism to customize 
translation per DbAdapter. The first case that came up where we will need it:

* Null handling. Most databases support null comparison (although the result is 
often different):

SELECT * FROM ARTIST WHERE ARTIST_NAME = NULL (notice "= NULL" instead of "IS 
NULL)

FrontBase throws an exception. So one alternative syntax we can use for this 
query on FrontBase is "SELECT * FROM ARTIST WHERE FALSE"

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

Reply via email to