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(" (");