Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
4da900ea
Commit
4da900ea
authored
Jun 12, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码生成模板*注释修改
parent
7ceb6f01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
entity.java.vm
.../ace-generator/src/main/resources/template/entity.java.vm
+6
-2
No files found.
ace-modules/ace-generator/src/main/resources/template/entity.java.vm
View file @
4da900ea
...
...
@@ -24,13 +24,17 @@ public class ${className} implements Serializable {
#
foreach
($
column
in
$
columns
)
#
if
($
column
.
columnName
==
$
pk
.
columnName
)
//$
column
.
comments
/**
*
$
column
.
comments
*/
@
Id
@
GeneratedValue
(
generator
=
"JDBC"
)
@
ApiModelProperty
(
"$column.comments"
)
private
$
column
.
attrType
$
column
.
attrname
;
#
else
//$
column
.
comments
/**
*
$
column
.
comments
*/
@
Column
(
name
=
"$column.columnName"
)
@
ApiModelProperty
(
value
=
"$column.comments"
#
if
($
column
.
columnName
==
"crt_time"
||$
column
.
columnName
==
"upd_time"
),
hidden
=
true
#
end
)
private
$
column
.
attrType
$
column
.
attrname
;
...
...
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