Examples of refreshHql()


Examples of com.github.dactiv.orm.annotation.TreeEntity.refreshHql()

    Class<?> entityClass = ReflectionUtils.getTargetClass(entity);
    TreeEntity treeEntity = ReflectionUtils.getAnnotation(entityClass,TreeEntity.class);

    if (treeEntity != null) {
      //from {0} tree where tree.{1} = {2} and (select count(c) from {0} c where c.{3}.{4} = r.{4}) = {5}
      String hql = MessageFormat.format(treeEntity.refreshHql(),
          persistentContext.getEntityName(),
          treeEntity.leafProperty(),
          treeEntity.leafValue(),
          treeEntity.parentProperty(),
          persistentContext.getIdName(),
View Full Code Here

Examples of com.github.dactiv.orm.annotation.TreeEntity.refreshHql()

    Class<?> entityClass = ReflectionUtils.getTargetClass(entity);
    TreeEntity treeEntity = ReflectionUtils.getAnnotation(entityClass,TreeEntity.class);

    if (treeEntity != null) {
      //from {0} tree where tree.{1} = {2} and (select count(c) from {0} c where c.{3}.{4} = r.{4}) = {5}
      String hql = MessageFormat.format(treeEntity.refreshHql(),
          persistentContext.getEntityName(),
          treeEntity.leafProperty(),
          treeEntity.leafValue(),
          treeEntity.parentProperty(),
          persistentContext.getIdName(),
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.