Examples of PK


Examples of com.digitolio.jdbi.annotations.PK

        return defaultValue;
    }

    private String getAutoGeneratedInfo(Column column) {
        Field field = column.getField();
        PK annotation = field.getAnnotation(PK.class);
        if (annotation != null && annotation.autoIncrement()) {
            return " auto_increment";
        } else {
            return "";
        }
    }
View Full Code Here

Examples of com.digitolio.jdbi.annotations.PK

        param.annotate(BindBean.class);
    }

    private Field getAutoIncrementField(List<Column> pkColumns) {
        for (Column pkColumn : pkColumns) {
            PK annotation = pkColumn.getField().getAnnotation(PK.class);
            if (annotation != null && annotation.autoIncrement()) {
                return pkColumn.getField();
            }
        }
        return null;
    }
View Full Code Here

Examples of com.digitolio.jdbi.annotations.PK

        return defaultValue;
    }

    private String getAutoGeneratedInfo(Column column) {
        Field field = column.getField();
        PK annotation = field.getAnnotation(PK.class);
        if (annotation != null && annotation.autoIncrement()) {
            return " auto_increment";
        } else {
            return "";
        }
    }
View Full Code Here

Examples of com.digitolio.jdbi.annotations.PK

        return defaultValue;
    }

    private String getAutoGeneratedInfo(Column column) {
        Field field = column.getField();
        PK annotation = field.getAnnotation(PK.class);
        if (annotation != null && annotation.autoIncrement()) {
            return " auto_increment";
        } else {
            return "";
        }
    }
View Full Code Here

Examples of org.apache.openjpa.enhance.UnenhancedCompoundPKFieldAccess.PK

            if(this == obj)
                return true;
            if(obj == null || obj.getClass() != getClass())
                return false;

            PK other = (PK) obj;
            return (id0 == other.id0)
                && (id1 == other.id1);
        }
View Full Code Here

Examples of org.apache.openjpa.enhance.UnenhancedCompoundPKPropertyAccess.PK

            if(this == obj)
                return true;
            if(obj == null || obj.getClass() != getClass())
                return false;

            PK other = (PK) obj;
            return (id0 == other.id0)
                && (id1 == other.id1);
        }
View Full Code Here

Examples of org.eweb4j.orm.annotation.Pk

           
            Property p = new Property();
            p.setAutoIncrement("1");
            p.setPk("1");
           
            Pk pkAnn = f.getAnnotation(Pk.class);
           
            if (pkAnn != null) {
              p.setPk("1");
            }
           
View Full Code Here

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
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.