[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-912?page=co...
]
Sergey Pulyaev commented on HHH-912:
------------------------------------
There are another operations that are defined both in CriteriaImpl and DetatchedCriteria -
DetachedCriteria add(Criterion criterion)
DetachedCriteria addOrder(Order order)
DetachedCriteria createCriteria(String associationPath)
String getAlias()
DetachedCriteria setProjection(Projection projection)
I use both of these classes in my code - and i have to duplicate two methods for the same
logic in case of Criteria and DetachedCriteria...
It's ugly...
The reason why i use both of the - i have to upply the same restrictions for selects and
subselects - in other words - for Criteria and DetachedCriteria.
Use of DetachedCriteria
-----------------------
Key: HHH-912
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-912
Project: Hibernate Core
Issue Type: Improvement
Components: core
Affects Versions: 3.0.5
Environment: All
Reporter: Frank Verbruggen
Priority: Minor
The class org.hibernate.criterion.DetachedCriteria should represent a criteria object on
which all the operations available to a Criteria object that do NOT require a Session
object are available.
Two such operations are setFirstResult() and setMaxResults().
These are unfortunately enough not available.
There probably are more methods missing that need to be added but these two in particular
are important to me.
See
http://opensource2.atlassian.com/projects/spring/browse/SPR-1254.
Can they be added in the next release ?
Kind regards
Frank Verbruggen
--
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