Yeah, the flush is needed after persisting InterpretationData. Otherwise, as I said, if you want to keep batching for both entities you can remove the @Generated annotation, and manually call refresh(interpretation) - this is a similar behavior to Hibernate 5. |