Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
35458 60 d 4 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
 
35439 61 d 5 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Fixed  
35437 61 d 9 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Fixed  
35432 62 d 4 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Remove @Transactional from DashboardController

Transaction management now handled at repository level (GenericRepositoryImpl).
Controllers no longer need @Transactional annotation.
 
35430 62 d 4 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Fix: Add @Transactional(readOnly = true) to DashboardController

Hibernate's getCurrentSession() requires a transaction context.
Using readOnly=true provides session context with optimizations:
- No row-level locks acquired
- DB can optimize for read-only queries
- Shorter connection hold time than read-write transactions
 
35429 62 d 4 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Remove unnecessary @Transactional from DashboardController

- Removed class-level @Transactional(rollbackOn = Throwable.class)
- All 57 methods in this controller are read-only operations (dashboards, charts, reports)
- No transaction management needed for pure read operations
- Reduces unnecessary connection pool usage
 
35395 63 d 23 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Fixed performance  
35340 76 d 11 h aman /trunk/profitmandi-fofo/src/main/ Feat:Approval page to trial user  
35310 89 d 6 h aman /trunk/profitmandi-fofo/src/main/ Fix:Fix Monthly sale  
35284 96 d 23 h aman /trunk/ Fix:Monthly acceories sale  
35247 110 d 12 h vikas /trunk/ Fix:Partner Target for diwali and Download app link  
35119 135 d 12 h aman /trunk/ FIx: contact-us update , Seconday sale method , Running model on dashboard modal  
35104 137 d 10 h vikas /trunk/ Oppo Diwali Rewards  
35099 141 d 9 h amit /trunk/ Fixed dashboard  
35064 147 d 4 h aman /trunk/ Feat:BrandwiseSale and brandWise Item wise sale and live scratch offer  
34973 163 d 7 h aman /trunk/ Fix:Mobile LMS chart fix  
34813 212 d 6 h aman /trunk/ Partner Dashboard Analysis  
34781 223 d 8 h amit.gupta /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Fixed Year Month logic  
34617 266 d 10 h amit.gupta /trunk/profitmandi-fofo/src/main/ Fixed Live demo issue  
34528 288 d 8 h ranu /trunk/profitmandi-fofo/src/main/ given chart to analysis  

Show All