This content has been marked as final.
Show 3 replies
-
1. Re: Is UNION (in EJBQL) supported in Wildfly 10
ctomc Nov 14, 2016 4:38 PM (in response to prasanth_jboss) -
2. Re: Is UNION (in EJBQL) supported in Wildfly 10
mayerw01 Nov 15, 2016 9:19 AM (in response to prasanth_jboss)I got the same issue in Wildfly 10 when using Hibernate (EclipseLink seems to works). Are you sure that Hibernate union works in WildFly 9? In my tests Hibernate did not produce any error but just ignored the 'union table' (which is even worse).
But using 'createNativeQuery' should work. Maybe you could also use a database view instead.
-
3. Re: Is UNION (in EJBQL) supported in Wildfly 10
prasanth_jboss Nov 15, 2016 12:48 PM (in response to mayerw01)Turned on statement logging in the database and ran the same code in 9.0.2 the statement in the log doesn't show the sql after union. As you said hibernate might have been ignoring it and that is scary.