- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在issue 29980421中,我发现答案中的代码示例包括PropertyAccessor和PropertyAccessorFactory。查看hibernate-orm项目时,发现删除了这些类:
org.hibernate.property.PropertyAccessor 于 2015-06-04 15:12:17 GMT-04:00 被删除org.hibernate.property.PropertyAccessorFactory 已于 2015-06-04 15:12:17 GMT-04:00 删除
有人会对此提供任何反馈吗?
如果可能的话,你能不能提供一个运行的例子,替换In issue 29980421第一个答案中的代码例子? How to retrieve a set of member objects using Hibernate?
编辑:
感谢您的评论。阅读评论后,我从问题中删除了 hibernate 4.x。 PropertyAccessorFactory 怎么样?
最佳答案
也许为时已晚,但现在您必须选择 PropertyAccessStrategy 实现之一,例如 PropertyAccessStrategyFieldImpl。
PropertyAccessStrategy accessor = PropertyAccessStrategyFieldImpl.INSTANCE;
PropertyAccess access = accessor.buildPropertyAccess(entityClass, "propertyName");
关于hibernate - PropertyAccessor 和 PropertyAccessorFactory 是否已删除或弃用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33100243/
在issue 29980421中,我发现答案中的代码示例包括PropertyAccessor和PropertyAccessorFactory。查看hibernate-orm项目时,发现删除了这些类:
我迁移到 Hibernate 5.3.7。我有以下代码片段,我在迁移过程中遇到了问题。 PropertyAccessor propertyAccessor = new ChainedPrope
我是一名优秀的程序员,十分优秀!