Package com.evasion.entity.geolocation

Examples of com.evasion.entity.geolocation.AdminDivision


                LOGGER.error("Country by ct code {} not found", ((AdminDivision) entity).getCountry().getCode());
            } else {
                ((AdminDivision) entity).setCountry(ct);
            }
        } else if (entity instanceof City) {
            AdminDivision adm = null;
            City city = (City) entity;
            if (city.getAdmDivision() != null && city.getAdmDivision().getCode() != null) {
                adm = (AdminDivision) regionAdmDAO.findByAdmCode(((City) entity).getAdmDivision().getCode());
            }
            ((City) entity).setAdmDivision(adm);
View Full Code Here


     * serialVersionUID.
     */
    private static final long serialVersionUID = 1L;

    public AdminDivision findByAdmCode(String admCode) {
        AdminDivision result;
        Query query = (Query) getEntityManager().
                createNamedQuery(AdminDivision.QUERY_FIND_BY_ADMCODE);
        query.setParameter(1, admCode);
        try {
            result = (AdminDivision) query.getSingleResult();
View Full Code Here

                LOGGER.error("Country by ct code {} not found", ((AdminDivision) entity).getCountry().getCode());
            } else {
                ((AdminDivision) entity).setCountry(ct);
            }
        } else if (entity instanceof City) {
            AdminDivision adm = null;
            City city = (City) entity;
            if (city.getAdmDivision() != null && city.getAdmDivision().getCode() != null) {
                adm = (AdminDivision) regionAdmDAO.findByAdmCode(((City) entity).getAdmDivision().getCode());
            }
            ((City) entity).setAdmDivision(adm);
View Full Code Here

TOP

Related Classes of com.evasion.entity.geolocation.AdminDivision

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.