Package org.springframework.data.neo4j.mapping

Examples of org.springframework.data.neo4j.mapping.InvalidEntityTypeException


            return new Neo4jPersistentEntityImpl<T>(typeInformation,entityAlias);
        }
        if (type.isAnnotationPresent(RelationshipEntity.class)) {
            return new Neo4jPersistentEntityImpl<T>(typeInformation,entityAlias);
        }
        throw new InvalidEntityTypeException("Type " + type + " is neither a @NodeEntity nor a @RelationshipEntity");
    }
View Full Code Here


    } catch (InvocationTargetException e) {
      throw new IllegalArgumentException(e.getTargetException());
        } catch (InstantiationException e) {
            if (isAbstractOrInterface(c)) {
                // This is the same exception that is being used in the TypeSafetyPolicy
                throw new InvalidEntityTypeException("Unable to legally create entity : abstract/interface class specified : " + c);
            }
            throw new IllegalArgumentException(e);
    } catch (Exception e) {
      throw new IllegalArgumentException(e);
    }
View Full Code Here

TOP

Related Classes of org.springframework.data.neo4j.mapping.InvalidEntityTypeException

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.