Package com.tan.bean

Examples of com.tan.bean.User


 
  public static void main(String[] args) {
    StringBuffer symbol = new StringBuffer();
    StringBuffer sql = new StringBuffer();
   
    User dto = new User();
    dto.id = 1;
    //dto.lastTime = new Date();
    dto.realname = "realname";
    dto.username = "username";
   
    Class clz = dto.getClass();
    Table table = (Table) clz.getAnnotation(Table.class);
    if (null == table) {
      throw new RuntimeException("DTO内不含有Table注解Annotation");
    }
    sql.append("INSERT INTO ").append(table.name()).append(" (");
View Full Code Here

TOP

Related Classes of com.tan.bean.User

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.