[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1639?page=c...
]
Wells Tiedeman commented on HHH-1639:
-------------------------------------
Touche. We used an aspect on the Criteria query methods since a hook wasn't provided.
For example:
pointcut criteriaListExecution(Criteria targetCriteria) : target(targetCriteria)
&&
call(List Criteria.list()) && !this(RowSecurityGuard) &&
!within(RowSecurityAspect);
List around(Criteria targetCriteria) : criteriaListExecution(targetCriteria)
{
log.debug("\n\nEntering aspect criteriaListExecution.\n\n");
this.adviseQuery(targetCriteria);
List result = proceed(targetCriteria);
log.debug("\n\nLeaving aspect criteriaListExecution.\n\n");
return result;
}
Add Events to Query methods
---------------------------
Key: HHH-1639
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1639
Project: Hibernate3
Issue Type: New Feature
Components: core
Affects Versions: 3.1.3
Reporter: jose
Priority: Minor
Original Estimate: 2 days
Remaining Estimate: 2 days
Current event methods capturing some persistence actions (on session actions) but not
capturing persistence-searchs actions (on Query object)
I would like adds event architecture to Query, adding listeners to iterate, list,
scroll,... methods to allows customizable "pre" and "post" actions
over list searchs
--
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