junaidp / acris

Automatically exported from code.google.com/p/acris
0 stars 0 forks source link

DTO transaction propagation #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Now TransactionPropagation supports 2 modes:
 * PROPAGATE - propagates transactions to converters (blobs and lazy references are converted)
 * ISOLATE - isolate transactions from converters (blobs and lazy refenreces - will not be converted)

introduce 3rd one:
 * PROPAGATE_TO_NON_LAZY - propagate transaction to converters but only to non lazy references like blobs

Original issue reported on code.google.com by nejakyus...@gmail.com on 9 Oct 2011 at 10:38

GoogleCodeExporter commented 8 years ago

Original comment by nejakyus...@gmail.com on 10 Oct 2011 at 8:54

GoogleCodeExporter commented 8 years ago
PROPAGATE_TO_NON_LAZY is the same as ISOLATE :-) so that wasn't the correct 
proposal.

Better solution is to enumerate all fields that transaction should be 
isolated/propagated to, like:
@TransactionPropagation(value = PropagationType.PROPAGATE, fields = "content")

This means, that all lazy references won't be converted except for content.

The same situation with:
@TransactionPropagation(value = PropagationType.ISOLATE, fields = "content")

this meas, that all lazy references will be converter except for content;

Original comment by nejakyus...@gmail.com on 16 Oct 2011 at 10:47

GoogleCodeExporter commented 8 years ago

Original comment by nejakyus...@gmail.com on 16 Oct 2011 at 10:54