Provide Common Superinterface for Query and Criteria
----------------------------------------------------
Key: HHH-3106
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3106
Project: Hibernate3
Issue Type: Improvement
Reporter: James Carman
Priority: Minor
It would be nice if the Query and Criteria interfaces both extended a common
superinterface that looked something like this (I don't know about the name, but you
get the idea):
public interface QueryResultsProvider {
List list();
ScrollableResult scroll();
ScrollableResult scroll(ScrollMode mode);
Object uniqueResult();
}
This way, if I wanted to write a framework that does something with Hibernate query
results, I don't have to write two flavors of it. Does this sound reasonable?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira