...or does it wait until the associated transaction is committed? 

I'm using an HQL query in a loop like this:

```
tx.begin()
for(...)
{
    session.getNamedQuery(...).list()
    ...
    session.save(new MyEntity())
}
tx.commit()

```

The named query needs to be able to see the entities that were added with the save call. Will it work that way?