I found that session.flush() must be called in order to trigger the storage of the collection. The issue can be closed.