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

SQLTemplate improvement: new #bindObjectEqual #bindObjectNotEqual directives

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0
    • 3.0M1, 3.0
    • Core Library
    • None

    Description

      To support matching against ObjectId's or Persistent objects with compound PKs, we need two new directives: #bindColumnsEqual #bindColumnsNotEqual. The syntax would follow that of #bindEqual, with one extra "columns" parameter; and all remaining parameters being arrays or collections:

      #bindColumnsEqual(columns values jdbcTypes precisions)

      The motivation for this addition is actually EJBQL support for similar functionality , but it should be generally useful as well.

      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: