--
You received this message because you are subscribed to the Google Groups "warp-core" group.
To post to this group, send email to warp...@googlegroups.com.
To unsubscribe from this group, send email to warp-core+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/warp-core?hl=en.
My reasoning might be flawed but is there no solution like for example
a @Committed annotation?
That annotation wouldn't start a transaction before the method but
would make sure all uncommitted entities are committed after the
method.
(That behavior can today be simulated by calling an empty
@Transactional method lastly in the method but that doesn't feel
right.)
In that case the code would be:
@Committed
job() {
for(all entities) {
process(entity);
}
storeJobStatistics();
}
@Transactional
process(entity) {
// entity gets processed
}
storeJobStatistics() {
// store job statistics
}
Regards,
Gösta
2010/11/8 Gösta Jonasson <gos...@gmail.com>: