Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
renren-generator
Overview
Overview
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
吴迪
renren-generator
Commits
d3368cf2
Commit
d3368cf2
authored
Oct 16, 2020
by
人人开源ww
Committed by
Gitee
Oct 16, 2020
Browse files
Options
Browse Files
Download
Plain Diff
!12 update src/main/java/io/renren/utils/GenUtils.java.
Merge pull request !12 from Admin/N/A
parents
b07152fb
bc41a25c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
GenUtils.java
src/main/java/io/renren/utils/GenUtils.java
+3
-1
No files found.
src/main/java/io/renren/utils/GenUtils.java
View file @
d3368cf2
...
@@ -275,7 +275,9 @@ public class GenUtils {
...
@@ -275,7 +275,9 @@ public class GenUtils {
public
static
String
tableToJava
(
String
tableName
,
String
[]
tablePrefixArray
)
{
public
static
String
tableToJava
(
String
tableName
,
String
[]
tablePrefixArray
)
{
if
(
null
!=
tablePrefixArray
&&
tablePrefixArray
.
length
>
0
)
{
if
(
null
!=
tablePrefixArray
&&
tablePrefixArray
.
length
>
0
)
{
for
(
String
tablePrefix
:
tablePrefixArray
)
{
for
(
String
tablePrefix
:
tablePrefixArray
)
{
tableName
=
tableName
.
replace
(
tablePrefix
,
""
);
if
(
tableName
.
startsWith
(
tablePrefix
)){
tableName
=
tableName
.
replaceFirst
(
tablePrefix
,
""
);
}
}
}
}
}
return
columnToJava
(
tableName
);
return
columnToJava
(
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