Details
-
Task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
There are several queries that can return Object[] as a result (like ColumnSelect or SQLSelect). It can be much more convenient if we can map this result to some POJO.
API usage example:
class MyPojo { String name; long count; MyPojo(Object[] data) { this.name = (String)data[0]; this.count = (Long)data[1]; } }
List<MyPojo> result = ObjectSelect
.columnQuery(Artist.class, Artist.ARTIST_NAME, Artist.PAINTING_ARRAY.count())
.mapTo(MyPojo::new)
.select(context);
Attachments
Issue Links
- is cloned by
-
CAY-2482 Method to return POJO object after SQLTemplate or SQLSelect perform
- Closed
- links to