FAQ
Add DataContext.objectFromDataRow variety for generic classes
-------------------------------------------------------------

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


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)

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriescayenne
postedAug 28, '07 at 5:43p
activeAug 28, '07 at 5:43p
posts1
users1
websitecayenne.apache.org

1 user in discussion

Anonymous: 1 post

People

Translate

site design / logo © 2022 Grokbase