Joined: Mon Dec 01, 2008 1:40 pm Posts: 5
|
I am using some native queries.
However the DefaultAutoFlushEventListener does miss some flushes when these queries are involved because the check:
private boolean flushIsReallyNeeded(AutoFlushEvent event, final EventSource source) {
return source.getActionQueue()
.areTablesToBeUpdated( event.getQuerySpaces() ) ||
source.getFlushMode()==FlushMode.ALWAYS;
}
does return false.
The event.getQuerySpaces() is empty.
How can i tell hibernate (using hibernate as a JPA Provider using the entity manager) the queryspace my native query is "involved" with?
|
|