Package org.libreplan.business.workreports.daos

Examples of org.libreplan.business.workreports.daos.IWorkReportTypeDAO.existsByNameAnotherTransaction()


    @SuppressWarnings("unused")
    @AssertTrue(message = "timesheet template name is already being used")
    public boolean isUniqueWorkReportTypeNameConstraint() {
        IWorkReportTypeDAO workReportTypeDAO = Registry.getWorkReportTypeDAO();
        if (isNewObject()) {
            return !workReportTypeDAO.existsByNameAnotherTransaction(this);
        } else {
            try {
                WorkReportType c = workReportTypeDAO.findUniqueByName(name);
                return c.getId().equals(getId());
            } catch (InstanceNotFoundException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.