Examples of DruidMappingException


Examples of com.alibaba.druid.mapping.DruidMappingException

            if (entity == null) {
                entity = visitor.getEntity(entityName);
            }

            if (entity == null) {
                throw new DruidMappingException("entity not found : " + entityName);
            }

            if (x.getParent() instanceof SQLSelectQueryBlock) {
                SQLSelectQueryBlock queryBlock = (SQLSelectQueryBlock) x.getParent();
                if (queryBlock.getAttribute(MAPPING_ENTITY) == null) {
View Full Code Here

Examples of com.alibaba.druid.mapping.DruidMappingException

            return false;
        }
        property = entity.getProperty(propertyName);

        if (property == null) {
            throw new DruidMappingException("property not found : " + propertyName);
        }

        String dbColumName = visitor.resovleColumnName(entity, property);
        x.setName(dbColumName);
        x.putAttribute(MAPPING_PROPERTY, property);
View Full Code Here

Examples of com.alibaba.druid.mapping.DruidMappingException

            String entityName = tableExpr.getName();

            Entity entity = visitor.getEntity(entityName);

            if (entity == null) {
                throw new DruidMappingException("entity not foudn : " + entityName);
            }

            tableExpr.setName(entity.getTableName());
        }
View Full Code Here

Examples of com.alibaba.druid.mapping.DruidMappingException

                break;
            }
        }

        if (property == null) {
            throw new DruidMappingException("property not found : " + propertyName);
        }

        String dbColumName = property.getDbColumnName();
        x.setName(dbColumName);
View Full Code Here

Examples of com.alibaba.druid.mapping.DruidMappingException

            } else if (val instanceof Float) {
                stmt.setFloat(paramIndex, (Float) val);
            } else if (val instanceof Double) {
                stmt.setDouble(paramIndex, (Double) val);
            } else {
                throw new DruidMappingException("not support parameters : " + val);
            }
        }
    }
View Full Code Here

Examples of com.alibaba.druid.mapping.DruidMappingException

            if (entity == null) {
                entity = visitor.getEntity(entityName);
            }

            if (entity == null) {
                throw new DruidMappingException("entity not found : " + entityName);
            }

            if (x.getParent() instanceof SQLSelectQueryBlock) {
                SQLSelectQueryBlock queryBlock = (SQLSelectQueryBlock) x.getParent();
                if (queryBlock.getAttribute(MAPPING_ENTITY) == null) {
View Full Code Here

Examples of com.alibaba.druid.mapping.DruidMappingException

            return false;
        }
        property = entity.getProperty(propertyName);

        if (property == null) {
            throw new DruidMappingException("property not found : " + propertyName);
        }

        String dbColumName = visitor.resovleColumnName(entity, property);
        x.setName(dbColumName);
        x.putAttribute(MAPPING_PROPERTY, property);
View Full Code Here

Examples of com.alibaba.druid.mapping.DruidMappingException

            if (entity == null) {
                entity = visitor.getEntity(entityName);
            }

            if (entity == null) {
                throw new DruidMappingException("entity not found : " + entityName);
            }

            if (x.getParent() instanceof SQLSelectQueryBlock) {
                SQLSelectQueryBlock queryBlock = (SQLSelectQueryBlock) x.getParent();
                if (queryBlock.getAttribute(MAPPING_ENTITY) == null) {
View Full Code Here

Examples of com.alibaba.druid.mapping.DruidMappingException

            return false;
        }
        property = entity.getProperty(propertyName);

        if (property == null) {
            throw new DruidMappingException("property not found : " + propertyName);
        }

        String dbColumName = visitor.resovleColumnName(entity, property);
        x.setName(dbColumName);
        x.putAttribute(MAPPING_PROPERTY, property);
View Full Code Here

Examples of com.alibaba.druid.mapping.DruidMappingException

            String entityName = tableExpr.getName();

            Entity entity = visitor.getEntity(entityName);

            if (entity == null) {
                throw new DruidMappingException("entity not foudn : " + entityName);
            }

            tableExpr.setName(entity.getTableName());
        }
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.