Package org.boco.seamwebappgen.exception

Examples of org.boco.seamwebappgen.exception.WrongSelectionAttributeException


          toBeanName = rel1.getToBeanName();

          if (m == relations.size() - 1)
            if (!isFieldContained(toBeanName, relations.get(relations.size())))
              throw new WrongSelectionAttributeException(beanName, rel.getName(), toBeanName, relations.get(relations.size()));

        }

        //        String relatedBean = Utils.splitRelation(attr);
        //        String relatedAttr = Utils.splitAttribute(attr);
        //        Relationship relation = getRelationship(relatedBean);

        //        if (relation == null)
        //          throw new WrongRelatedBeanException(beanName, rel.getName(), relatedBean);

        //        String toBeanName = relation.getToBeanName();
        //
        //        if (!beanExist(toBeanName))
        //          throw new WrongRelatedBeanException(beanName, rel.getName(), relatedBean);

        //        if (!isFieldContained(toBeanName, relatedAttr))
        //          ;
        // throw new WrongSelectionAttributeException(beanName, rel.getName(), toBeanName, relatedAttr);
      }
      else if (!isFieldContained(rel.getToBeanName(), attr))
        throw new WrongSelectionAttributeException(beanName, rel.getName(), rel.getToBeanName(), attr);
    }
  }
View Full Code Here

TOP

Related Classes of org.boco.seamwebappgen.exception.WrongSelectionAttributeException

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.