I have checked in a suggestion on how to resolve the issue. Please review.
Suggestions and Questions are ,as always, welcome.
A remaining question is if we still need the CountHelper and SumarizeHelper
classes because now you can do
Criteria criteria = new Criteria().addSelectColumn(new Count("*"));
Integer count = BasePeer.doSelectSingleRecord(
criteria,
new IntegerMapper(),
Summarize1Peer.getTableMap());
or (true means that distinct is used)
Criteria criteria = new Criteria().addSelectColumn(
new Avg(Summarize1Peer.INT_1, true));
Integer avg = BasePeer.doSelectSingleRecord(
criteria,
new IntegerMapper(),
Summarize1Peer.getTableMap());
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]