Package org.nutz.dao.entity.annotation

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


    return entity;
  }

  private void evalPks(Class<?> type, MyTable table, Entity<?> entity) {
    HashMap<String, EntityField> pkmap = new HashMap<String, EntityField>();
    PK pk = type.getAnnotation(PK.class);
    if (null != pk) {
      for (String pknm : pk.value()){
        EntityField ef=entity.getField(pknm);
        pkmap.put(pknm, ef);
      }
    }else{
      List<MyField> pkFields=table.getPkFields();
View Full Code Here

TOP

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

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.