Hibernate HQL with interfaces
Posted
by Benju
on Stack Overflow
See other posts from Stack Overflow
or by Benju
Published on 2010-02-20T05:13:22Z
Indexed on
2010/05/02
16:57 UTC
Read the original article
Hit count: 343
According to this section of the Hibernate documentation I should be able to query any java class in HQL
http://docs.jboss.org/hibernate/core/3.3/reference/en/html/queryhql.html#queryhql-polymorphism
Unfortunately when I run this query...
"from Transaction trans where trans.envelopeId=:envelopeId"
I get the message "Transaction is not mapped [from Transaction trans where trans.envelopeId=:envelopeId]".
Transaction is an interface, I have to entity classes that implement it, I want on HQL query to return a Collection of type Transaction.
© Stack Overflow or respective owner