Hibernate session not flushed before handing over raw JDBC session to user code (e.g. coin selection)

Description

`CordaPersistence.createSession()` should do a Hibernate flush before returning the connection
e.g. cash selection can't access states inserted during the same database transaction

Status

Assignee

Szymon Sztuka

Reporter

Rick Parker

Priority

High

Labels

None

Severity

Medium

Fix versions

Ported to...

None

Feature Team

Corda Core