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