Package org.mifosplatform.organisation.holiday.exception

Examples of org.mifosplatform.organisation.holiday.exception.HolidayNotFoundException


            final String sql = " select " + rm.schema() + " where h.id = ?";

            return this.jdbcTemplate.queryForObject(sql, rm, new Object[] { holidayId });
        } catch (final EmptyResultDataAccessException e) {
            throw new HolidayNotFoundException(holidayId);
        }
    }
View Full Code Here


        this.repository = repository;
    }

    public Holiday findOneWithNotFoundDetection(final Long id) {
        final Holiday holiday = this.repository.findOne(id);
        if (holiday == null) { throw new HolidayNotFoundException(id); }
        return holiday;
    }
View Full Code Here

TOP

Related Classes of org.mifosplatform.organisation.holiday.exception.HolidayNotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.