Adding the answer to Konstantin Pribluda, I can say that in the opposite situation: adding data through Hibernate (even with session.save ()), and then fetching data using native SQL, caused the native SQL query to not retrieve the added data .
Therefore, when you use different types of queries in the DAO, I always drop the session first before using my own SQL query ... I never know which method is mixed at the service level.
source share