forked from yudaocode/SpringBoot-Labs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
YunaiV
committed
Sep 28, 2019
1 parent
a2aab39
commit a054aaf
Showing
4 changed files
with
72 additions
and
8 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
...ocoder/springboot/labs/lab10/springdatarediswithjedis/cacheobject/ProductCacheObject.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
package cn.iocoder.springboot.labs.lab10.springdatarediswithjedis.cacheobject; | ||
|
||
/** | ||
* 商品缓存对象 | ||
*/ | ||
public class ProductCacheObject { | ||
|
||
/** | ||
* 产品编号 | ||
*/ | ||
private Integer id; | ||
/** | ||
* 产品名 | ||
*/ | ||
private String name; | ||
/** | ||
* 产品分类编号 | ||
*/ | ||
private Integer cid; | ||
|
||
public Integer getId() { | ||
return id; | ||
} | ||
|
||
public ProductCacheObject setId(Integer id) { | ||
this.id = id; | ||
return this; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public ProductCacheObject setName(String name) { | ||
this.name = name; | ||
return this; | ||
} | ||
|
||
public Integer getCid() { | ||
return cid; | ||
} | ||
|
||
public ProductCacheObject setCid(Integer cid) { | ||
this.cid = cid; | ||
return this; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "ProductCacheObject{" + | ||
"id=" + id + | ||
", name='" + name + '\'' + | ||
", cid=" + cid + | ||
'}'; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters