Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.3.0
-
Fix Version/s: 2.0
-
Component/s: DSL for Services
-
Labels:None
Description
The Spring transaction attributes are generated for each service method. When we apply a combination of convention and wildcards the transaction config could be a lot more generic and simpeler. Like this:
<tx:attributes> <tx:method name="find*" propagation="SUPPORTS" read-only="true" /> <tx:method name="retrieve*" propagation="SUPPORTS" read-only="true" /> <tx:method name="read*" propagation="SUPPORTS" read-only="true" /> <tx:method name="list*" propagation="SUPPORTS" read-only="true" /> <tx:method name="count*" propagation="SUPPORTS" read-only="true" /> <tx:method name="*" propagation="REQUIRED" /> </tx:attributes>