0
I’m doing a query select with spring + Hibernate,
Query query = em.createNativeQuery(sqlBase);
I am passing to the 'sqlBase' a Company as parameter,
SELECT e.* FROM Empresa e WHERE e.id = :empresa
In this company I modify some data before passing to this query, change a data of the COMPANY object, when I send to the Query it ends up UPDATING this data that I modified.
Well that specific thing, but ball show I solved using the annotation in the routines I have of query, only a detail so far as I could see both who query Active and the "normal" that use hql he ends up making the flush. Thanks for the help!
– Felipe Effting