问题描述
我将hibernate envers与包含@MapKeyEnumerated的auditstrategy和映射类一起使用
Class 'Input' not found
@OnetoMany(fetch = FetchType.LAZY,cascade = CascadeType.ALL,orphanRemoval = true)
@MapKeyEnumerated(EnumType.STRING)
@JoinColumn(name = "cp_watching_point_id")
private final Map<TemporalContext,LineCriterionGroups> temporalContexts = new HashMap<>();
,一切正常。但是,如果我将休眠版本更新为5.4.6或最后一个5.4.22,则会生成以下内容:
select ee__ from WatchingPoint_LineCriterionGroups_AUD ee__ where ee__.originalId.mapkey = :_p0 and ee__.originalId.WatchingPoint_id = :_p1 and ee__.originalId.temporalContexts_id = :_p2 and ee__.REvend is null
select ee__ from WatchingPoint_LineCriterionGroups_AUD ee__ where ee__.originalId.temporalContexts_KEY = :_p0 and ee__.originalId.WatchingPoint_id = :_p1 and ee__.originalId.temporalContexts_id = :_p2 and ee__.REvend is null
如您所见,字段 org.hibernate.QueryException: Could not resolve property: originalId.temporalContexts_KEY of: WatchingPoint_LineCriterionGroups_AUD ...
变为originalId.mapkey
我不知道为什么,而且因为无法更新休眠版本而陷入困境。
有人遇到了同样的问题并找到了解决方案吗?
谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)