【发布时间】:2010-02-20 05:13:22
【问题描述】:
根据 Hibernate 文档的这一部分,我应该能够查询 HQL 中的任何 java 类
http://docs.jboss.org/hibernate/core/3.3/reference/en/html/queryhql.html#queryhql-polymorphism
不幸的是,当我运行此查询时...
"from Transaction trans where trans.envelopeId=:envelopeId"
我收到消息“事务未映射 [来自 Transaction trans where trans.envelopeId=:envelopeId]”。
事务是一个接口,我必须实现它的实体类,我希望在 HQL 查询上返回一个事务类型的集合。
【问题讨论】:
标签: java hibernate orm hql entity