You need to sign in or sign up before continuing.
Commit fc835faf by [zhangzhiwei]

序列化

parent 15bbeae6
...@@ -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;
......
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment