Quantcast
Channel: Vlad Mihalcea
Viewing all articles
Browse latest Browse all 177

Hibernate StatelessSession JDBC Batching

$
0
0

Introduction In this article, we are going to see how we can use the Hibernate StatelessSession in order to enable JDBC Batching for INSERT, UPDATE, and DELETE statements. While the StatelessSession has been available for more than 20 years, until Hibernate 6, its usefulness was rather limited since it lacked support for batching, as well as other cool features, such as UPSERT. Hibernate StatelessSession Just like the Hibernate Session, you can create a Hibernate StatelessSession from the Hibernate SessionFactory: However, unlike the Hibernate Session or JPA EntityManager, the Hibernate StatelessSession doesn’t have... Read More

The post Hibernate StatelessSession JDBC Batching appeared first on Vlad Mihalcea.


Viewing all articles
Browse latest Browse all 177

Trending Articles