Subversion Repositories SmartDukaan

Rev

Rev 36329 | Rev 36334 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36329 Rev 36333
Line 500... Line 500...
500
    }
500
    }
501
 
501
 
502
    @Override
502
    @Override
503
    @Cacheable(value = "rbmWeeklyBilling",
503
    @Cacheable(value = "rbmWeeklyBilling",
504
            cacheManager = "fiveMintimeoutCacheManager",
504
            cacheManager = "fiveMintimeoutCacheManager",
505
            unless = "#result == null or #result.isEmpty()",
-
 
506
            sync = true)
505
            sync = true)
507
    public List<RbmWeeklyBillingModel> getWeeklyBillingDataForMonth(LocalDate monthStart, LocalDate monthEnd) {
506
    public List<RbmWeeklyBillingModel> getWeeklyBillingDataForMonth(LocalDate monthStart, LocalDate monthEnd) {
508
        Session session = sessionFactory.getCurrentSession();
507
        Session session = sessionFactory.getCurrentSession();
509
        final TypedQuery<RbmWeeklyBillingModel> typedQuery = session.createNamedQuery("RBM.WeeklyBilling", RbmWeeklyBillingModel.class);
508
        final TypedQuery<RbmWeeklyBillingModel> typedQuery = session.createNamedQuery("RBM.WeeklyBilling", RbmWeeklyBillingModel.class);
510
        typedQuery.setParameter("startDate", monthStart);
509
        typedQuery.setParameter("startDate", monthStart);