我有以下多对多关系
@ManyToMany
@JoinTable(
name="response"
, joinColumns={
@JoinColumn(name="id_response", referencedColumnName="id_response")
}
, inverseJoinColumns={
@JoinColumn(name="id_request")
}
)
private List<Transaction> transactions;
我得到以下异常:
Wrong column type in response for column id_response. Found: varchar, expected: integer
是否可以向 @JoinColumn 添加参数以明确告诉它是字符串值?还有其他解决方案吗?