seges / acris

AcrIS is a modern framework serving as a base for applications, web sites and portals. It provides various tools and libraries to ease daily development. Build on top of Google web toolkit and provides sophisticated solution for security, beans binding, JSON protocol and usefull project skelets integrated with maven, hibernate, spring and gilead. You will get a prepared solution in box ready to use in your own project.
4 stars 1 forks source link

DTO transaction propagation #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 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 9 years ago

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

GoogleCodeExporter commented 9 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 9 years ago

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