Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0
-
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)