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 190 d 1 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 191 d 2 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Fixed  
35437 191 d 6 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Fixed  
35432 192 d 1 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 192 d 1 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 192 d 1 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 193 d 20 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Fixed performance  
35340 206 d 8 h aman /trunk/profitmandi-fofo/src/main/ Feat:Approval page to trial user  
35310 219 d 3 h aman /trunk/profitmandi-fofo/src/main/ Fix:Fix Monthly sale  
35284 226 d 20 h aman /trunk/ Fix:Monthly acceories sale  
35247 240 d 10 h vikas /trunk/ Fix:Partner Target for diwali and Download app link  
35119 265 d 9 h aman /trunk/ FIx: contact-us update , Seconday sale method , Running model on dashboard modal  
35104 267 d 8 h vikas /trunk/ Oppo Diwali Rewards  
35099 271 d 6 h amit /trunk/ Fixed dashboard  
35064 277 d 1 h aman /trunk/ Feat:BrandwiseSale and brandWise Item wise sale and live scratch offer  
34973 293 d 4 h aman /trunk/ Fix:Mobile LMS chart fix  
34813 342 d 3 h aman /trunk/ Partner Dashboard Analysis  
34781 353 d 5 h amit.gupta /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Fixed Year Month logic  
34617 396 d 7 h amit.gupta /trunk/profitmandi-fofo/src/main/ Fixed Live demo issue  
34528 418 d 5 h ranu /trunk/profitmandi-fofo/src/main/ given chart to analysis  

Show All