Description
I'm trying to upgrade from 4.5.1
In our code, we create a nativeQuery and add some hibernate specific stuff:
Query query = entityManager.createNativeQuery(queryString); SQLQuery hibernateQuery = query.unwrap(SQLQuery.class); hibernateQuery.addScalar("device_pk", new LongType()); query.getResultList()
However , 4.7.1 fails on this code. Since there is no tx active (on purpose) the JtaQuery wrapper insists on creating a new Query object during getResltLIst, loosing the customization.
Attachments
Issue Links
- is broken by
-
TOMEE-798 without any transaction query objects issued from managed entitymanagers are wrongly handled leading the not make unmanaged entities which should be in this state
- Resolved