Correct, QueryInvocationContext is not valid in the scenario you have
listed.
On Thu, Feb 8, 2018 at 10:47 AM Luís Alves wrote:
> well...I can acess the current EM with:
>
> final JPAQuery qry = new JPAQuery(
> *entityManager()*).from(c)
>
yup :) thanks John
On Thu, Feb 8, 2018 at 12:39 PM, John D. Ament
wrote:
> Luis,
>
> This issue is solved by using the global alternative in
> META-INF/apache-deltaspike.properties.
>
> John
>
> On Thu, Feb 8, 2018 at 7:11 AM Luís Alves wrote:
>
>
So... from the stack:
Caused by: java.lang.IllegalStateException: A JTA EntityManager cannot use
getTransaction()
at
org.hibernate.jpa.spi.AbstractEntityManagerImpl.getTransaction(AbstractEntityManagerImpl.java:1333)
at
Luis,
This issue is solved by using the global alternative in
META-INF/apache-deltaspike.properties.
John
On Thu, Feb 8, 2018 at 7:11 AM Luís Alves wrote:
> So... from the stack:
>
> Caused by: java.lang.IllegalStateException: A JTA EntityManager cannot use
>
Hello,
I'm trying to user QueryDSL. From the examples at
https://deltaspike.apache.org/documentation/data.html
O got to something like this:
@Repository
public abstract class ConfigurationRepository extends
AbstractEntityRepository
implements