Package org.mongolink.domain.criteria

Examples of org.mongolink.domain.criteria.CompositeRestriction


    public void applyRestrictionsFor(Class<?> target, Criteria criteria) {
        if(!hasSubclasses()) {
            return;
        }
        CompositeRestriction or = Restrictions.or();
        criteria.add(or);
        if(target == getPersistentType()) {
            or.with(Restrictions.exists(SubclassMapper.DISCRIMINATOR, false));
        }
        for (SubclassMapper<?> subclassMapper : getSubclasses()) {
            subclassMapper.applyRestrictions(target, or);
        }
View Full Code Here

TOP

Related Classes of org.mongolink.domain.criteria.CompositeRestriction

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.