Examples of existsByNameInAnotherTransaction()


Examples of org.libreplan.business.externalcompanies.daos.IExternalCompanyDAO.existsByNameInAnotherTransaction()

    @AssertTrue(message="company name must be unique. Company name already used")
    public boolean isUniqueNameConstraint() {
        IExternalCompanyDAO dao = Registry.getExternalCompanyDAO();

        if (isNewObject()) {
            return !dao.existsByNameInAnotherTransaction(name);
        } else {
            try {
                ExternalCompany company =
                    dao.findUniqueByNameInAnotherTransaction(name);
                return company.getId().equals(getId());
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.