...
|
...
|
@@ -5,18 +5,24 @@ import com.yoho.datasync.core.base.annotation.FieldTransfer; |
|
|
import com.yoho.datasync.core.base.model.yh_pcms.PublicArticle;
|
|
|
import lombok.Data;
|
|
|
|
|
|
import javax.persistence.*;
|
|
|
|
|
|
/***
|
|
|
* 种草社区表 <--> 公共库表
|
|
|
* @author peuei
|
|
|
* @date 2019/3/19 10:37
|
|
|
* @description 对应表 yh_grass.grass_article
|
|
|
*/
|
|
|
@Entity
|
|
|
@Data
|
|
|
@ClassTransfer(targetClass = PublicArticle.class)
|
|
|
public class GrassArticle {
|
|
|
|
|
|
// 将原主键保存到目标对象
|
|
|
@FieldTransfer(targetFieldName = "relateId")
|
|
|
@Id
|
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
@Column(name = "id", nullable = false, unique = true)
|
|
|
private Integer id;
|
|
|
|
|
|
@FieldTransfer
|
...
|
...
|
|