Search in sources :

Example 1 with BaseClassNotFoundException

use of org.neo4j.ogm.exception.core.BaseClassNotFoundException in project neo4j-ogm by neo4j.

the class EntityFactory method resolve.

private String resolve(String... taxa) {
    String fqn = taxaLeafClass.get(Arrays.toString(taxa));
    if (fqn == null) {
        ClassInfo classInfo = metadata.resolve(taxa);
        if (classInfo == null) {
            throw new BaseClassNotFoundException(Arrays.toString(taxa));
        }
        fqn = classInfo.name();
        taxaLeafClass.put(Arrays.toString(taxa), fqn);
    }
    return fqn;
}
Also used : BaseClassNotFoundException(org.neo4j.ogm.exception.core.BaseClassNotFoundException) ClassInfo(org.neo4j.ogm.metadata.ClassInfo)

Aggregations

BaseClassNotFoundException (org.neo4j.ogm.exception.core.BaseClassNotFoundException)1 ClassInfo (org.neo4j.ogm.metadata.ClassInfo)1