Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
common
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
common
Commits
228c5b52
Commit
228c5b52
authored
Nov 24, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
z
parent
4a21ba78
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
ReflexUtil.java
src/main/java/com/egolm/common/ReflexUtil.java
+2
-1
ReverseUtil.java
src/main/java/com/egolm/common/jdbc/dialect/ReverseUtil.java
+2
-4
No files found.
src/main/java/com/egolm/common/ReflexUtil.java
View file @
228c5b52
...
...
@@ -72,7 +72,7 @@ public class ReflexUtil {
try
{
return
new
PropertyDescriptor
(
field
.
getName
(),
clazz
).
getReadMethod
();
}
catch
(
IntrospectionException
e1
)
{
throw
new
ReflectException
(
"MethodNotFound:"
+
methodName
);
throw
new
ReflectException
(
"MethodNotFound:"
+
methodName
+
" class:"
+
clazz
.
getName
()
+
" field:"
+
field
.
getName
()
);
}
}
}
else
{
...
...
@@ -163,4 +163,5 @@ public class ReflexUtil {
throw
new
ReflectException
(
"GetMethodException"
,
e
);
}
}
}
src/main/java/com/egolm/common/jdbc/dialect/ReverseUtil.java
View file @
228c5b52
...
...
@@ -2,10 +2,8 @@ package com.egolm.common.jdbc.dialect;
import
java.io.File
;
import
java.io.IOException
;
import
java.util.Date
;
import
java.util.List
;
import
com.egolm.common.DateUtil
;
import
com.egolm.common.FileUtil
;
import
com.egolm.common.StringUtil
;
...
...
@@ -50,8 +48,8 @@ public class ReverseUtil {
sb
.
append
(
"/**"
+
"\n"
);
sb
.
append
(
" * @author "
+
author
+
"\n"
);
sb
.
append
(
" * @since "
+
DateUtil
.
format
(
new
Date
(),
DateUtil
.
FMT_DATE
)
+
"\n"
);
sb
.
append
(
" * @version v-1.0"
+
"\n"
);
//
sb.append(" * @since " + DateUtil.format(new Date(), DateUtil.FMT_DATE) + "\n");
//
sb.append(" * @version v-1.0" + "\n");
sb
.
append
(
" */"
+
"\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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment