|
At the moment there is a hard link between the use of the org.hibernate.criterion.Subqueries and org.hibernate.criterion.DetachedCriteria.
This makes it hard whenever someone wants to make their own "detached criteria" solution. Would it be possible to change the methods that are dependent on DetachedCriteria to use an interface instead or allow easier subclassing of the detached criteria class.
As a side note:
Would it also be possible to provide some sort of shared interface between Criteria and DetachedCriteria. This could make the code a bit more consistent since DetachedCriteria is a copy of most of the methods in Criteria, but has no direct link with it.
|