Examples of DuplicateCharacterException


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
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.