Commit 228c5b52 authored by Quxl's avatar Quxl

z

parent 4a21ba78
...@@ -72,7 +72,7 @@ public class ReflexUtil { ...@@ -72,7 +72,7 @@ public class ReflexUtil {
try { try {
return new PropertyDescriptor(field.getName(), clazz).getReadMethod(); return new PropertyDescriptor(field.getName(), clazz).getReadMethod();
} catch (IntrospectionException e1) { } catch (IntrospectionException e1) {
throw new ReflectException("MethodNotFound:" + methodName); throw new ReflectException("MethodNotFound:" + methodName + " class:" + clazz.getName() + " field:" + field.getName());
} }
} }
} else { } else {
...@@ -163,4 +163,5 @@ public class ReflexUtil { ...@@ -163,4 +163,5 @@ public class ReflexUtil {
throw new ReflectException("GetMethodException", e); throw new ReflectException("GetMethodException", e);
} }
} }
} }
...@@ -2,10 +2,8 @@ package com.egolm.common.jdbc.dialect; ...@@ -2,10 +2,8 @@ package com.egolm.common.jdbc.dialect;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.util.Date;
import java.util.List; import java.util.List;
import com.egolm.common.DateUtil;
import com.egolm.common.FileUtil; import com.egolm.common.FileUtil;
import com.egolm.common.StringUtil; import com.egolm.common.StringUtil;
...@@ -50,8 +48,8 @@ public class ReverseUtil { ...@@ -50,8 +48,8 @@ public class ReverseUtil {
sb.append("/**" + "\n"); sb.append("/**" + "\n");
sb.append(" * @author " + author + "\n"); sb.append(" * @author " + author + "\n");
sb.append(" * @since " + DateUtil.format(new Date(), DateUtil.FMT_DATE) + "\n"); // sb.append(" * @since " + DateUtil.format(new Date(), DateUtil.FMT_DATE) + "\n");
sb.append(" * @version v-1.0" + "\n"); // sb.append(" * @version v-1.0" + "\n");
sb.append(" */" + "\n"); sb.append(" */" + "\n");
sb.append("@Entity(name=\"" + name + "\")" + "\n"); sb.append("@Entity(name=\"" + name + "\")" + "\n");
sb.append("public class " + StringUtil.upperFirst(name) + " implements java.io.Serializable {" + "\n\n" + "\tprivate static final long serialVersionUID = 1L;" + "\n\n"); sb.append("public class " + StringUtil.upperFirst(name) + " implements java.io.Serializable {" + "\n\n" + "\tprivate static final long serialVersionUID = 1L;" + "\n\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment