尝试插入数据库时,我在“字段列表”中收到错误未知列客户端
这是我的代码显示主键和外键
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "ParamKey")
private long paramKey;
public long getParamKey() {
return paramKey;
}
@Column(name = "FeedKey")
public long getFeedKey() {
return feedKey;
}
public void setFeedKey(long feedKey) {
this.feedKey = feedKey;
}
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "clientKey")
public Client getClient() {
return client;
}
public void setClient(Client client) {
this.client = client;
}
休眠查询如下
insert
into
M_FeedInputParams
(client, createdBy, createdTs, feedKey, jobInstanceKey, logicalDeleteTms, paramName, paramOper, paramValue, paramValueType, sourceInstanceKey, updatedBy, updatedTs)
values
(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
客户端应该clientKey
怎么办?