Hi all, I am getting the "Cannot create TypedQuery for query with more than one return" error that was fixed in release 3.6.8 (HHH-6591) when running my JPA2 (hibernate provider) application under jboss7 (7.0.2)
my application does not contain any hibernate jars in it's WEB-INF\lib directory, and solely depends on jboss,
I can do some queries, but not this one
Code:
@NamedQuery(name = "Carrier.findAllCarriers", query = "SELECT c, ir21.version, ir21.subVersion, ir21.updatedDatetime, ir21.userVdas.userId FROM Carrier c, Ir21Data ir21"),
em.createNamedQuery("Carrier.findAllCarriers", Carrier.class).getResultList();
I get the TypedQuery error :-(
I think jboss7 is using the latest hibernate because I see the following jar in it's modules dir
jboss_home\modules\org\jboss\as\jpa\hibernate\3\jboss-as-jpa-hibernate3-7.0.2.Final.jar
jboss_home\modules\org\jboss\as\jpa\hibernate\4\jboss-as-jpa-hibernate4-7.0.2.Final.jar
and
jboss_home\modules\org\hibernate\main\hibernate-core-4.0.0.CR2.jar
jboss_home\modules\org\hibernate\main\hibernate-commons-annotations-4.0.0.CR2.jar
jboss_home\modules\org\hibernate\main\hibernate-entitymanager-4.0.0.CR2.jar
jboss_home\modules\org\hibernate\main\hibernate-infinispan-4.0.0.CR2.jar
can someone help me and tell me how I can execute the namedquery?
thanks