Package org.nutz.dao.entity.annotation

Examples of org.nutz.dao.entity.annotation.One


  }
 
  private Link evalLink(DatabaseMeta db, Connection conn, Mirror<?> mirror, Field field) {
    try {
      // @One
      One one = field.getAnnotation(One.class);
      if (null != one) { // One > refer own field
        Mirror<?> ta = Mirror.me(one.target());
        Field referFld = mirror.getField(one.field());
        Field targetPkFld = lookupPkByReferField(ta, referFld);
        return Link.getLinkForOne(mirror, field, ta.getType(), referFld, targetPkFld);
      }
      Many many = field.getAnnotation(Many.class);
      if (null != many) {
View Full Code Here

TOP

Related Classes of org.nutz.dao.entity.annotation.One

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.