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
2dbd7af7
Commit
2dbd7af7
authored
Dec 18, 2020
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
071beacc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Desc.java
src/main/java/com/egolm/common/jdbc/dialect/bean/Desc.java
+4
-0
No files found.
src/main/java/com/egolm/common/jdbc/dialect/bean/Desc.java
View file @
2dbd7af7
...
@@ -8,6 +8,7 @@ import java.util.List;
...
@@ -8,6 +8,7 @@ import java.util.List;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Id
;
import
javax.persistence.Transient
;
import
com.egolm.common.StringUtil
;
import
com.egolm.common.StringUtil
;
...
@@ -37,6 +38,9 @@ public class Desc {
...
@@ -37,6 +38,9 @@ public class Desc {
List
<
String
>
pk_column_names
=
new
ArrayList
<
String
>();
List
<
String
>
pk_column_names
=
new
ArrayList
<
String
>();
for
(
int
i
=
0
;
i
<
objectFields
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
objectFields
.
length
;
i
++)
{
Field
field
=
objectFields
[
i
];
Field
field
=
objectFields
[
i
];
if
(
field
.
isAnnotationPresent
(
Transient
.
class
))
{
continue
;
}
int
mod
=
field
.
getModifiers
();
int
mod
=
field
.
getModifiers
();
if
(!
Modifier
.
isStatic
(
mod
)
&&
!
Modifier
.
isFinal
(
mod
))
{
if
(!
Modifier
.
isStatic
(
mod
)
&&
!
Modifier
.
isFinal
(
mod
))
{
String
fieldName
=
field
.
getName
();
String
fieldName
=
field
.
getName
();
...
...
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