Hi,
I have a server side process that uses HQL to do an insert in one transaction. After this transaction (outside @Transaction) it then does a native sql read (for various reasons). The SQL native read is still done through the hibernate architecture.
Im noticing that sometimes the native read is not finding what it is supposed to and wondering if this is because the transaction has flushed yet - does it even need to flush ? I thought that the read should always work no matter what as long as it was in or after the transaction .
Or maybe the read must be in HQL to be sure ?
confused
I have a server side process that uses HQL to do an insert in one transaction. After this transaction (outside @Transaction) it then does a native sql read (for various reasons). The SQL native read is still done through the hibernate architecture.
Im noticing that sometimes the native read is not finding what it is supposed to and wondering if this is because the transaction has flushed yet - does it even need to flush ? I thought that the read should always work no matter what as long as it was in or after the transaction .
Or maybe the read must be in HQL to be sure ?
confused