ncthuc / hibernate-generic-dao

Automatically exported from code.google.com/p/hibernate-generic-dao
0 stars 0 forks source link

How about a uniqueResult method and adding some column operators to Search? #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Provide a method on the daos for passing in a search and returning a single
result. It would throw an error if the query returns more than one result.
Perhaps it should return null if 0 results are returned.

Then add options to the Search object for column operators. Maybe call it
"summary" and specify a column and an operator. maybe COUNT, SUM, AVG, MAX,
MIN column operators.

The unique result could also be used for searches that have no column
operator but the user expects to return a single result.

Original issue reported on code.google.com by dwolvert on 21 Aug 2008 at 4:21

GoogleCodeExporter commented 8 years ago
IGNORE THIS ISSUE. There was an server error and this issue was accidentally 
created.
It is a duplicate. of 7.

Original comment by dwolvert on 21 Aug 2008 at 4:24