Hibernate version: 3.3.1 GA
MySQL Version: 5.1.34-community
JDBC Connector: mysql-connector-java-5.1.7
I have a HQL query that looks like this:
Where receivedTransactions and sentTransactions both are of type A or B both inheriting (EJB3 single-table style) from Transaction.
CustomerAccount is inheriting from TransactionAgent. (This should explain the quirks of the SQL below)
So I'm hoping for the list returned to contain objects of type Transaction.
However, as this HQL query is executed, it's generating the following SQL:
Which causes an exception:
Has anyone seen this issue with the "new list" clause in selects? Is it a known issue? I've tried looking around the JIRA db but haven't really found anything useful... Any ideas of work-arounds?
Using only "select ca.receivedTransactions, ca.sentTransactions ..." works, but it (as expected) returns Object which is not the behaviour I'm looking for.
Anderson gave himself the promotion. So I gave myself this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!