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

Add DataContext.objectFromDataRow variety for generic classes

    XMLWordPrintableJSON

Details

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

    Description

      generic classes differ from concrete mapped classes in that the user needs to pass entity name instead of the java.lang.Class to most of the context methods:

      http://cayenne.apache.org/doc/generic-persistent-class.html

      One important method that is missing is converting a data row to an instance of generic class. So we need:

      DataContext.objectFromDataRow(String, DataRow, boolean)

      This is not critical as there is a workaround that is just more verbose: objectsFromDataRows(ObjEntity,List,boolean, boolean). But still nice to have (for those who care about generic objects)

      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: