Hibernate 7.4 New Features | The IntelliJ IDEA Blog
Blog post from JetBrains
Hibernate 7.4 introduces significant enhancements that streamline data handling and auditing processes in JPA/Hibernate-based applications. The update addresses the challenge of efficiently loading paginated data alongside associated child collections by implementing nested queries, thereby allowing pagination to occur at the database level rather than in memory, which enhances performance and reduces resource consumption. Additionally, it incorporates built-in support for temporal history and audit tables, negating the previous need for external libraries like Envers for tracking changes to entity data. History tables enable querying the state of an entity at specific points in time by storing previous versions of the data with effective and superseded timestamps, while audit tables record the sequence and type of changes made to entities. These improvements reduce the need for custom infrastructure, making Hibernate 7.4 a more robust and efficient tool for managing complex data queries and historical data tracking directly within the framework.