Subversion Repositories SmartDukaan

Rev

Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
35458 26 d 17 h amit /trunk/ Revert @Transactional(readOnly=true) - keep @Transactional only at Controller level

Changes:
- profitmandi-web: Controllers use @Transactional(rollbackFor = Throwable.class) at class level, removed method-level @Transactional(readOnly = true)
- profitmandi-fofo: Controllers use @Transactional(rollbackFor = Throwable.class) at class level, removed method-level @Transactional
- profitmandi-dao: Removed @Transactional from services/repositories

Exceptions (called from interceptors, need own transaction):
- RoleManager: @Transactional(readOnly = true) - called from interceptor for auth
- PartnerTypeChangeServiceImpl.getBestPartner(): @Transactional - called from JWTUtil via interceptor

Fixed javax.transaction.Transactional to org.springframework.transaction.annotation.Transactional
Fixed rollbackOn to rollbackFor for Spring compatibility
 
35435 28 d 1 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Add @Transactional(readOnly = true) to GET methods in controllers

Added @Transactional(readOnly = true) to all read-only GET methods across 14 controllers:
- RetailerController (10 methods)
- UserController (16 methods)
- WalletController (5 methods)
- CartController (2 methods)
- StoreController (25 methods)
- DealsController (20 methods)
- ShopController (1 method)
- CustomerController (2 methods)
- NotificationController (3 methods)
- SolrSearchController (2 methods)
- InsuranceController (1 method)
- GatewayController (1 method)
- LeadController (13 methods)
- RechargeController (4 methods)

Total: 105 methods updated

All methods verified to only set @Transient fields on entities, ensuring no dirty writes.
 
23568 2830 d 20 h govind /trunk/ Fixed changes related to logging. Updated to log4j2  
23273 2913 d 20 h ashik.ali /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/  
22931 2984 d 1 h ashik.ali /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/  
22037 3099 d 23 h amit.gupta /trunk/ Added exception class for controller  
21740 3136 d 18 h ashik.ali /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/  
21735 3136 d 18 h ashik.ali /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/  
21734 3136 d 19 h ashik.ali /trunk/  
21730 3136 d 21 h ashik.ali /trunk/  
21702 3138 d 20 h ashik.ali /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/  
21496 3164 d 18 h ashik.ali /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/  
21448 3171 d 18 h ashik.ali /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/  
21440 3172 d 0 h ashik.ali /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/  
21431 3172 d 19 h ashik.ali /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/  
21426 3172 d 23 h ashik.ali /trunk/profitmandi-web/src/main/  
21390 3176 d 19 h ashik.ali /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/  
21309 3182 d 15 h ashik.ali /trunk/profitmandi-web/src/main/ Create Retailer Api  
21302 3184 d 17 h ashik.ali /trunk/profitmandi-web/  
21292 3185 d 16 h ashik.ali /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/