Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
datamanage
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
shenjinzhu
datamanage
Commits
fc835faf
You need to sign in or sign up before continuing.
Commit
fc835faf
authored
Nov 14, 2018
by
[zhangzhiwei]
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
序列化
parent
15bbeae6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/main/java/com/zhiwei/manage/bean/Channel.java
+1
-2
src/main/java/com/zhiwei/manage/bean/Data.java
+4
-1
No files found.
src/main/java/com/zhiwei/manage/bean/Channel.java
View file @
fc835faf
...
@@ -17,8 +17,7 @@ import org.springframework.data.mongodb.core.mapping.Document;
...
@@ -17,8 +17,7 @@ import org.springframework.data.mongodb.core.mapping.Document;
@Document
(
collection
=
"Channel"
)
@Document
(
collection
=
"Channel"
)
public
class
Channel
implements
Serializable
{
public
class
Channel
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
829668966587771974L
;
private
static
final
long
serialVersionUID
=
1L
;
@Indexed
@Indexed
@Id
@Id
private
String
id
;
private
String
id
;
...
...
src/main/java/com/zhiwei/manage/bean/Data.java
View file @
fc835faf
...
@@ -17,7 +17,10 @@ import org.springframework.stereotype.Component;
...
@@ -17,7 +17,10 @@ import org.springframework.stereotype.Component;
@Component
@Component
@Document
(
collection
=
"Data"
)
@Document
(
collection
=
"Data"
)
public
class
Data
implements
Serializable
{
public
class
Data
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
*
*/
private
static
final
long
serialVersionUID
=
-
4394515060081205347L
;
@Id
@Id
// @Indexed(unique = true)
// @Indexed(unique = true)
private
String
dataId
;
private
String
dataId
;
...
...
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