Package org.makersoft.shards.annotation

Examples of org.makersoft.shards.annotation.PrimaryKey


      System.arraycopy(second, 0, fields, first.length, second.length);

      for (Field field : fields) {
        field.setAccessible(true);
       
        PrimaryKey primaryKey = field.getAnnotation(PrimaryKey.class);
        if (primaryKey != null) {
          try {
            //去除0的情况
            Object result = field.get(object);
            if(result != null && "0".equals(result.toString())){
View Full Code Here


      System.arraycopy(second, 0, fields, first.length, second.length);

      for (Field field : fields) {
        field.setAccessible(true);
       
        PrimaryKey primaryKey = field.getAnnotation(PrimaryKey.class);
        if (primaryKey != null) {
          try {
            //set id
            field.set(object, id);
           
View Full Code Here

TOP

Related Classes of org.makersoft.shards.annotation.PrimaryKey

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.