我是使用Spring Data for Couchbase的新手,我定义了此对象
public class Building {
@NotNull
@Id
private String id;
@NotNull
@Field
private String name;
@NotNull
@Field
private String companyId;
}
但是我不确定对象中定义的id是否与Couchbase元数据信息以及如何定义其格式相同
.cas
.expiration
.flags
.id
.type
您无需担心元属性,它们是由ouchbase自动创建的。仅@Id是必需的。