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

Property api to add aliases

    XMLWordPrintableJSON

Details

    Description

      Add method to create aliases for properties.

      Cab be used in qualifiers to have several joins to one table, in orderings, in column queries and having qualifiers.

      Supported by relationship properties.

      Example:

      ObjectSelect.query(Artist.class)
      .where(Artist.PAINTING_ARRAY.alias("p1").dot(Painting.PAINTING_TITLE).eq("painting2"))
      .and(Artist.PAINTING_ARRAY.alias("p2").dot(Painting.PAINTING_TITLE).eq("painting4"))
      .select(context);

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aarrsseni Arseni Bulatski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: