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
a212a30e
Commit
a212a30e
authored
Jan 11, 2021
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
bb4ee4c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
17 deletions
+15
-17
Desc.java
src/main/java/com/egolm/common/jdbc/dialect/bean/Desc.java
+15
-17
No files found.
src/main/java/com/egolm/common/jdbc/dialect/bean/Desc.java
View file @
a212a30e
...
@@ -43,27 +43,25 @@ public class Desc {
...
@@ -43,27 +43,25 @@ public class Desc {
}
}
int
mod
=
field
.
getModifiers
();
int
mod
=
field
.
getModifiers
();
if
(!
Modifier
.
isStatic
(
mod
)
&&
!
Modifier
.
isFinal
(
mod
))
{
if
(!
Modifier
.
isStatic
(
mod
)
&&
!
Modifier
.
isFinal
(
mod
))
{
if
(!
field
.
isAnnotationPresent
(
Transient
.
class
))
{
String
fieldName
=
field
.
getName
();
String
fieldName
=
field
.
getName
();
String
columnName
=
null
;
String
columnName
=
null
;
if
(
field
.
isAnnotationPresent
(
Column
.
class
))
{
if
(
field
.
isAnnotationPresent
(
Column
.
class
))
{
Column
column
=
field
.
getAnnotation
(
Column
.
class
);
Column
column
=
field
.
getAnnotation
(
Column
.
class
);
String
columnAnnoName
=
column
.
name
();
String
columnAnnoName
=
column
.
name
();
if
(
StringUtil
.
isNotBlank
(
columnAnnoName
))
{
if
(
StringUtil
.
isNotBlank
(
columnAnnoName
))
{
columnName
=
columnAnnoName
;
columnName
=
columnAnnoName
;
}
else
{
columnName
=
fieldName
;
}
}
else
{
}
else
{
columnName
=
fieldName
;
columnName
=
fieldName
;
}
}
if
(
field
.
isAnnotationPresent
(
Id
.
class
))
{
}
else
{
pk_field_names
.
add
(
fieldName
)
;
columnName
=
fieldName
;
pk_column_names
.
add
(
columnName
);
}
}
if
(
field
.
isAnnotationPresent
(
Id
.
class
))
{
all
_field_names
.
add
(
fieldName
);
pk
_field_names
.
add
(
fieldName
);
all
_column_names
.
add
(
columnName
);
pk
_column_names
.
add
(
columnName
);
}
}
all_field_names
.
add
(
fieldName
);
all_column_names
.
add
(
columnName
);
}
}
}
}
this
.
name
=
tableName
;
this
.
name
=
tableName
;
...
...
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