Felix König (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5a4bad5...
) *commented* on HHH-4042 (
https://hibernate.atlassian.net/browse/HHH-4042?atlOrigin=eyJpIjoiNDcxODZ...
)
Re: StatelessSession does not flush when using jdbc batch_size > 1 (
https://hibernate.atlassian.net/browse/HHH-4042?atlOrigin=eyJpIjoiNDcxODZ...
)
Or, as a generic workaround snippet:
Session session = entityManager.unwrap(Session.class);
session.doWork(connection -> {
try (StatelessSession statelessSession =
session.getSessionFactory().openStatelessSession(connection)) {
// do stuff with stateless session
// workaround for
https://hibernate.atlassian.net/browse/HHH-4042
((SharedSessionContractImplementor)
statelessSession).getJdbcCoordinator().executeBatch();
}
});
(
https://hibernate.atlassian.net/browse/HHH-4042#add-comment?atlOrigin=eyJ...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-4042#add-comment?atlOrigin=eyJ...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100217- sha1:65be9f2 )