Package com.github.jmkgreen.morphia.mapping.lazy.proxy

Examples of com.github.jmkgreen.morphia.mapping.lazy.proxy.ProxiedEntityReference


    }

    private Key<?> getKey(final Object entity, Mapper mapr) {
        try {
            if (entity instanceof ProxiedEntityReference) {
                ProxiedEntityReference proxy = (ProxiedEntityReference) entity;
                return proxy.__getKey();
            }
            MappedClass mappedClass = mapr.getMappedClass(entity);
            Object id = mappedClass.getIdField().get(entity);
            if (id == null)
                throw new MappingException("@Id field cannot be null!");
View Full Code Here

TOP

Related Classes of com.github.jmkgreen.morphia.mapping.lazy.proxy.ProxiedEntityReference

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.