Package lv.odylab.evemanage.application.exception.validation

Examples of lv.odylab.evemanage.application.exception.validation.DuplicateCharacterException


        Key<Character> existingCharacter = objectifyFactory.begin().query(Character.class)
                .filter("characterID", character.getCharacterID()).getKey();
        if (character.getId() == null &&
                existingCharacter != null) {
            logger.error("Trying to add character that is already added: {} ({})", character.getName(), character.getCharacterID());
            throw new DuplicateCharacterException();
        }
    }
View Full Code Here

TOP

Related Classes of lv.odylab.evemanage.application.exception.validation.DuplicateCharacterException

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.